Skip to content

Commit

Permalink
Backport #32737
Browse files Browse the repository at this point in the history
package.json: move `version_short` variable under the `config` object

This is so that it works on npm 7.x too.
  • Loading branch information
XhmikosR committed Jan 10, 2021
1 parent 37186db commit a2f8ad7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/generate-sri.js
Expand Up @@ -40,7 +40,7 @@ const files = [
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'
},
{
Expand Down
7 changes: 3 additions & 4 deletions build/zip-examples.js
Expand Up @@ -12,11 +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

Expand Down
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -2,7 +2,9 @@
"name": "bootstrap",
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
"version": "4.5.3",
"version_short": "4.5",
"config": {
"version_short": "4.5"
},
"keywords": [
"css",
"sass",
Expand Down

0 comments on commit a2f8ad7

Please sign in to comment.