From 1d93659e9cb7941c9e17c8615a35209226fe149c Mon Sep 17 00:00:00 2001 From: Lukas Steiger Date: Fri, 21 Oct 2022 14:07:17 +0200 Subject: [PATCH] set package version automatically from package.json --- webpack.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 8a581cd..3b19c58 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,10 +1,11 @@ const path = require('path'); +var package = require('./package.json'); const {BuildConfig, WebpackConfigBuilder, Version, DesignType, ModuleConfig} = require('@bsi-cx/design-build'); const landingpageBuildConfig = new BuildConfig() .withName('master-template-cx-22.0-landingpage') - .withVersion('1.1.0') + .withVersion(package.version) .withDesignType(DesignType.LANDINGPAGE) .withTargetVersion(Version.CX_22_0) .withRootPath(path.resolve(__dirname, 'templates', 'landingpage')) @@ -17,7 +18,7 @@ const landingpageBuildConfig = new BuildConfig() const websiteBuildConfig = new BuildConfig() .withName('master-template-cx-22.0-website') - .withVersion('1.1.0') + .withVersion(package.version) .withDesignType(DesignType.WEBSITE) .withTargetVersion(Version.CX_22_0) .withRootPath(path.resolve(__dirname, 'templates', 'website'))