fix(plugins): Export child_process.spawn from plugins and use plugins.spawn in spawnPath to remove direct require and unify process spawning
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
// node native
|
||||
import * as path from 'path';
|
||||
import * as url from 'url';
|
||||
import { spawn } from 'child_process';
|
||||
import type { ChildProcess } from 'child_process';
|
||||
import type { Readable } from 'stream';
|
||||
|
||||
export { path, url };
|
||||
export { path, url, spawn };
|
||||
export type { ChildProcess, Readable };
|
||||
|
||||
// @pushrocks scope
|
||||
|
Reference in New Issue
Block a user