@boltic/auto-software 1.0.3 → 1.0.4
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/bin/cli.js +10 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -313,9 +313,13 @@ async function generatePrismaClient(databaseUrl) {
|
|
|
313
313
|
}
|
|
314
314
|
function startBackendProcess(env, isShuttingDownFn) {
|
|
315
315
|
const backendEntry = path2.join(PROJECT_ROOT, "backend", "src", "index.ts");
|
|
316
|
+
const nodePath = [
|
|
317
|
+
path2.join(PROJECT_ROOT, "backend", "node_modules"),
|
|
318
|
+
process.env.NODE_PATH
|
|
319
|
+
].filter(Boolean).join(path2.delimiter);
|
|
316
320
|
const child = fork(backendEntry, [], {
|
|
317
321
|
cwd: path2.join(PROJECT_ROOT, "backend"),
|
|
318
|
-
env: { ...process.env, ...env },
|
|
322
|
+
env: { ...process.env, ...env, NODE_PATH: nodePath },
|
|
319
323
|
execArgv: ["--import", "tsx"],
|
|
320
324
|
stdio: ["pipe", "pipe", "pipe", "ipc"]
|
|
321
325
|
});
|
|
@@ -341,9 +345,13 @@ function startBackendProcess(env, isShuttingDownFn) {
|
|
|
341
345
|
}
|
|
342
346
|
function startWorkerProcess(env, isShuttingDownFn) {
|
|
343
347
|
const workerEntry = path2.join(PROJECT_ROOT, "worker", "src", "index.ts");
|
|
348
|
+
const workerNodePath = [
|
|
349
|
+
path2.join(PROJECT_ROOT, "worker", "node_modules"),
|
|
350
|
+
process.env.NODE_PATH
|
|
351
|
+
].filter(Boolean).join(path2.delimiter);
|
|
344
352
|
const child = fork(workerEntry, [], {
|
|
345
353
|
cwd: path2.join(PROJECT_ROOT, "worker"),
|
|
346
|
-
env: { ...process.env, ...env },
|
|
354
|
+
env: { ...process.env, ...env, NODE_PATH: workerNodePath },
|
|
347
355
|
execArgv: ["--import", "tsx"],
|
|
348
356
|
stdio: ["pipe", "pipe", "pipe", "ipc"]
|
|
349
357
|
});
|