package.json: move version_short variable under the config object (#32737)
This is so that it works on npm 7.x too.
This commit is contained in:
parent
ee8546da18
commit
7e6d7b8f81
2 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue