1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/scripts/prepare.js
Bill Thornton efe4374153 Merge pull request #2242 from thornbill/fix-prepare-script-windows
Replace bash prepare script with node version

(cherry picked from commit 898704d9b0)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
2020-12-30 19:08:01 -05:00

12 lines
489 B
JavaScript
Executable file

const { execSync } = require('child_process');
/**
* The npm `prepare` script needs to run a build to support installing
* a package from git repositories (this is dumb but a limitation of how
* npm behaves). We don't want to run these in CI though because
* building is slow so this script will skip the build when the
* `SKIP_PREPARE` environment variable has been set.
*/
if (!process.env.SKIP_PREPARE) {
execSync('webpack --config webpack.prod.js', { stdio: 'inherit' });
}