mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
fix windows postinstall
This commit is contained in:
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