mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
Backport #32737
package.json: move `version_short` variable under the `config` object This is so that it works on npm 7.x too.
This commit is contained in:
parent
0f1069a32e
commit
2e8f70f5a1
@ -40,7 +40,7 @@ const files = [
|
|||||||
configPropertyName: 'js_bundle_hash'
|
configPropertyName: 'js_bundle_hash'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: `site/static/docs/${pkg.version_short}/assets/js/vendor/jquery.slim.min.js`,
|
file: `site/static/docs/${pkg.config.version_short}/assets/js/vendor/jquery.slim.min.js`,
|
||||||
configPropertyName: 'jquery_hash'
|
configPropertyName: 'jquery_hash'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -12,11 +12,10 @@
|
|||||||
const path = require('path')
|
const path = require('path')
|
||||||
const sh = require('shelljs')
|
const sh = require('shelljs')
|
||||||
|
|
||||||
const {
|
const pkg = require('../package.json')
|
||||||
version, version_short: versionShort
|
|
||||||
} = require('../package.json')
|
|
||||||
|
|
||||||
const folderName = `bootstrap-${version}-examples`
|
const versionShort = pkg.config.version_short
|
||||||
|
const folderName = `bootstrap-${pkg.version}-examples`
|
||||||
|
|
||||||
sh.config.fatal = true
|
sh.config.fatal = true
|
||||||
|
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
"name": "bootstrap",
|
"name": "bootstrap",
|
||||||
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
|
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
|
||||||
"version": "4.5.3",
|
"version": "4.5.3",
|
||||||
"version_short": "4.5",
|
"config": {
|
||||||
|
"version_short": "4.5"
|
||||||
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"css",
|
"css",
|
||||||
"sass",
|
"sass",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user