Archived
1
0

Get boostrap stuff forking

They don't run yet but seem to be forking correctly now.
This commit is contained in:
Asher
2019-01-22 18:28:54 -06:00
committed by Kyle Carberry
parent b1cd5c142f
commit 8a789ac957
6 changed files with 32 additions and 11 deletions

View File

@ -46,7 +46,7 @@ export class CP {
public fork = (modulePath: string, args?: ReadonlyArray<string> | cp.ForkOptions, options?: cp.ForkOptions): cp.ChildProcess => {
//@ts-ignore
return this.client.fork(modulePath, args, options);
return this.client.fork(options && options.env && options.env.AMD_ENTRYPOINT || modulePath, args, options);
}
public spawn = (command: string, args?: ReadonlyArray<string> | cp.SpawnOptions, options?: cp.SpawnOptions): cp.ChildProcess => {