Skip to content

Commit

Permalink
fix: versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
tsi committed Dec 25, 2023
1 parent 3e48d1d commit 775ccd1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions webpack/common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,10 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const DefinePlugin = require('webpack/lib/DefinePlugin');
const { lightFilenamePart, minFilenamePart } = require('./build-utils');

const ver = require('./versioning');
const VERSION = JSON.stringify(process.env.npm_package_version);

const tag = ver.extractTag();
const calculatedVersion = JSON.stringify(ver.getNextVersion(tag));
const packageVersion = JSON.stringify(require('../package.json').version);

const VERSION =
process.env.deploy === 'true' ? calculatedVersion || packageVersion : packageVersion;
console.log('Current version: ' + VERSION);

if (!calculatedVersion) {
console.log('No tag specified: ', tag);
}

const webpackConfig = {
context: path.resolve(__dirname, '../src'),

Expand Down

0 comments on commit 775ccd1

Please sign in to comment.