diff options
| author | XhmikosR <[email protected]> | 2021-01-10 08:03:49 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-10 08:03:49 +0200 |
| commit | 7e6d7b8f817ad1212238f15124335d37c93ebfea (patch) | |
| tree | 807494985c65ff39c19f6f5062b3383259a19a15 /build | |
| parent | ee8546da18c7c62ad1db135b03394483aa0d82bf (diff) | |
| download | bootstrap-7e6d7b8f817ad1212238f15124335d37c93ebfea.tar.xz bootstrap-7e6d7b8f817ad1212238f15124335d37c93ebfea.zip | |
package.json: move `version_short` variable under the `config` object (#32737)
This is so that it works on npm 7.x too.
Diffstat (limited to 'build')
| -rw-r--r-- | build/zip-examples.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/zip-examples.js b/build/zip-examples.js index c98ed9763..898e5860f 100644 --- a/build/zip-examples.js +++ b/build/zip-examples.js @@ -12,9 +12,10 @@ const path = require('path') const sh = require('shelljs') -const { version, version_short: versionShort } = require('../package.json') +const pkg = require('../package.json') -const folderName = `bootstrap-${version}-examples` +const versionShort = pkg.config.version_short +const folderName = `bootstrap-${pkg.version}-examples` sh.config.fatal = true |
