@boltic/auto-software 1.0.2 → 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.
Files changed (2) hide show
  1. package/bin/cli.js +12 -4
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -240,9 +240,9 @@ async function loadOrCreateConfig(dataDir) {
240
240
  }
241
241
  async function installBundleDeps() {
242
242
  if (!IS_BUNDLED) return;
243
- const backendNodeModules = path2.join(PROJECT_ROOT, "backend", "node_modules");
243
+ const sharedInBackend = path2.join(PROJECT_ROOT, "backend", "node_modules", "@autosoftware", "shared");
244
244
  try {
245
- await access2(backendNodeModules, constants2.R_OK);
245
+ await access2(sharedInBackend, constants2.R_OK);
246
246
  return;
247
247
  } catch {
248
248
  }
@@ -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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boltic/auto-software",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Put your entire software team on autopilot — the 100x engineer you dreamt of",
5
5
  "keywords": [
6
6
  "ai-agents",