mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 12:34:06 +08:00
ae08c72a2a
`--production` is already passed through via the `NODE_ENV` environment variable. We can parse `$npm_config_argv` to check whether `--frozen-lockfile` was passed.
48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"name": "discourse",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"repository": "git@github.com:discourse/discourse.git",
|
|
"author": "Discourse",
|
|
"license": "GPL-2.0-only",
|
|
"dependencies": {
|
|
"@discourse/moment-timezone-names-translations": "^1.0.0",
|
|
"@fortawesome/fontawesome-free": "5.15.4",
|
|
"@highlightjs/cdn-assets": "^10.7.0",
|
|
"@json-editor/json-editor": "^2.6.1",
|
|
"ace-builds": "1.4.13",
|
|
"bootbox": "3.2.0",
|
|
"chart.js": "3.5.1",
|
|
"chartjs-plugin-datalabels": "^2.0.0",
|
|
"diffhtml": "^1.0.0-beta.20",
|
|
"eslint-config-discourse": "^3.2.0",
|
|
"magnific-popup": "1.1.0",
|
|
"markdown-it": "13.0.1",
|
|
"moment": "2.29.2",
|
|
"moment-timezone": "0.5.31",
|
|
"pikaday": "1.8.0",
|
|
"squoosh": "discourse/squoosh#dc9649d",
|
|
"workbox-cacheable-response": "^4.3.1",
|
|
"workbox-core": "^4.3.1",
|
|
"workbox-expiration": "^4.3.1",
|
|
"workbox-routing": "^4.3.1",
|
|
"workbox-strategies": "^4.3.1",
|
|
"workbox-sw": "^4.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@arkweid/lefthook": "^0.7.7",
|
|
"@mixer/parallel-prettier": "^2.0.1",
|
|
"chrome-launcher": "^0.15.0",
|
|
"chrome-remote-interface": "^0.31.2",
|
|
"puppeteer-core": "^13.7.0"
|
|
},
|
|
"scripts": {
|
|
"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",
|
|
"npm": "please-use-yarn",
|
|
"yarn": ">= 1.21.1"
|
|
}
|
|
}
|