-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2242 from thornbill/fix-prepare-script-windows
Replace bash prepare script with node version
- Loading branch information
Showing
3 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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' }); | ||
} |
This file was deleted.
Oops, something went wrong.