diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-01-10 09:03:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 09:03:49 +0300 |
commit | 7e6d7b8f817ad1212238f15124335d37c93ebfea (patch) | |
tree | 807494985c65ff39c19f6f5062b3383259a19a15 /build | |
parent | ee8546da18c7c62ad1db135b03394483aa0d82bf (diff) |
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 c98ed9763f..898e5860fb 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 |