mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix windows postinstall
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"test:unit": "vue-cli-service test:unit --require ./tests/unit/helpers.js",
|
"test:unit": "vue-cli-service test:unit --require ./tests/unit/helpers.js",
|
||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
"postinstall": "if [ -n \"$npm_config_production\" ]; then npm run build; fi"
|
"postinstall": "node ./scripts/npm-postinstall.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/cli-plugin-babel": "^4.0.4",
|
"@vue/cli-plugin-babel": "^4.0.4",
|
||||||
|
|||||||
5
website/client/scripts/npm-postinstall.js
Normal file
5
website/client/scripts/npm-postinstall.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
const { execSync } = require('child_process');
|
||||||
|
|
||||||
|
if (process.env.NODE_ENV === 'production') {
|
||||||
|
execSync('npm run build');
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user