@lvce-editor/ipc 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -803,7 +803,8 @@ const create$2 = async ({
|
|
|
803
803
|
path,
|
|
804
804
|
argv = [],
|
|
805
805
|
execArgv = [],
|
|
806
|
-
name
|
|
806
|
+
name,
|
|
807
|
+
env = process.env
|
|
807
808
|
}) => {
|
|
808
809
|
string(path);
|
|
809
810
|
const actualArgv = ['--ipc-type=electron-utility-process', ...argv];
|
|
@@ -814,7 +815,8 @@ const create$2 = async ({
|
|
|
814
815
|
const childProcess = utilityProcess.fork(path, actualArgv, {
|
|
815
816
|
execArgv,
|
|
816
817
|
stdio: 'pipe',
|
|
817
|
-
serviceName: name
|
|
818
|
+
serviceName: name,
|
|
819
|
+
env
|
|
818
820
|
});
|
|
819
821
|
// @ts-ignore
|
|
820
822
|
childProcess.stdout.pipe(process.stdout);
|