mirror of
https://github.com/hanzoai/ts-node.git
synced 2026-10-30 19:36:25 +00:00
* fix git install on windows w/yarn due to spawn issue(?) * try e2e * tweak e2e * fix * turn off e2es; it works
13 lines
376 B
JavaScript
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);
|
|
}
|