Skip to content

Commit

Permalink
Update build-bootstrap-js.es6.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Dec 1, 2021
1 parent cd8ff1d commit 757cd40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/build-modules-js/javascript/build-bootstrap-js.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ const tasks = [];
const inputFolder = 'build/media_source/vendor/bootstrap/js';
const outputFolder = 'media/vendor/bootstrap/js';

const bsVersionA = require(process.cwd() + '/package.json');
const bsVersion = bsVersionA.dependencies.bootstrap.replace(/^\^/, '');
const bsVersion = require(`${process.cwd()}/package.json`).dependencies.bootstrap.replace(/^\^|~/, '');

const createMinified = async (file) => {
const initial = await readFile(resolve(outputFolder, file), { encoding: 'utf8' });
Expand Down

0 comments on commit 757cd40

Please sign in to comment.