mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: Pass through --frozen-lockfile flag for yarn install (#17478)
`--production` is already passed through via the `NODE_ENV` environment variable. We can parse `$npm_config_argv` to check whether `--frozen-lockfile` was passed.
This commit is contained in:
parent
806e0f2885
commit
ae08c72a2a
|
@ -37,7 +37,7 @@
|
|||
"puppeteer-core": "^13.7.0"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "yarn --cwd app/assets/javascripts/discourse"
|
||||
"postinstall": "yarn --cwd app/assets/javascripts/discourse $(node -e 'if(JSON.parse(process.env.npm_config_argv).original.includes(`--frozen-lockfile`)){console.log(`--frozen-lockfile`)}')"
|
||||
},
|
||||
"engines": {
|
||||
"node": "16.* || >= 18",
|
||||
|
|
Loading…
Reference in New Issue
Block a user