aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-01-10 08:03:49 +0200
committerGitHub <[email protected]>2021-01-10 08:03:49 +0200
commit7e6d7b8f817ad1212238f15124335d37c93ebfea (patch)
tree807494985c65ff39c19f6f5062b3383259a19a15 /build
parentee8546da18c7c62ad1db135b03394483aa0d82bf (diff)
downloadbootstrap-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.js5
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