Files
Andrew BradleyandGitHub ec2daff6c2 Fix windows git install (#2017)
* fix git install on windows w/yarn due to spawn issue(?)

* try e2e

* tweak e2e

* fix

* turn off e2es; it works
2023-05-07 23:14:11 -04:00

13 lines
376 B
JavaScript

const { npm_execpath } = process.env;
// prepack is executed by user's package manager when they install from git
// So cannot assume yarn
if (process.env.TS_NODE_SKIP_PREPACK == null) {
const crossSpawn = await import('cross-spawn');
const result = crossSpawn.sync(npm_execpath, ['run', 'prepack-worker'], {
stdio: 'inherit',
});
process.exit(result.status);
}