-
-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix git install on windows w/yarn due to spawn issue(?) * try e2e * tweak e2e * fix * turn off e2es; it works
- Loading branch information
Showing
4 changed files
with
12 additions
and
16 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
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 |
---|---|---|
@@ -1,18 +1,12 @@ | ||
import { spawnSync } from 'child_process'; | ||
const { npm_node_execpath, npm_execpath } = process.env; | ||
import { readFileSync } from 'fs'; | ||
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) { | ||
if (readFileSync(npm_execpath, 'utf8').match(/^#!.*sh/)) { | ||
spawnSync(npm_execpath, ['run', 'prepack-worker'], { | ||
stdio: 'inherit', | ||
}); | ||
} else { | ||
spawnSync(npm_node_execpath, [npm_execpath, 'run', 'prepack-worker'], { | ||
stdio: 'inherit', | ||
}); | ||
} | ||
const crossSpawn = await import('cross-spawn'); | ||
const result = crossSpawn.sync(npm_execpath, ['run', 'prepack-worker'], { | ||
stdio: 'inherit', | ||
}); | ||
process.exit(result.status); | ||
} |
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