Skip to content

Commit

Permalink
Alternative solution with npm package aliases.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Jun 30, 2020
1 parent 4f4fa24 commit f086453
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
},
"devDependencies": {
"bootlint": "1.1.0",
"bootstrap": "^5.0.0-alpha1",
"bootstrap": "npm:bootstrap@4.5.0",
"bootstrap5": "npm:bootstrap@5.0.0-alpha1",
"bootswatch": "4.5.0",
"escape-string-regexp": "^4.0.0",
"fs-extra": "^9.0.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/update_bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const fse = require('fs-extra');
version = version.replace(/^v/, '');

const basedir = path.join(__dirname, '..');
const bootstrapSrcDir = path.join(basedir, 'node_modules/bootstrap/dist');
const bootstrapSrcDir = path.join(basedir, `node_modules/${version.startsWith('5.') ? 'bootstrap5' : 'bootstrap'}/dist`);
const bootstrapDistDir = path.join(basedir, 'cdn', 'twitter-bootstrap', version);

if (fs.existsSync(bootstrapDistDir)) {
Expand Down

0 comments on commit f086453

Please sign in to comment.