@geekmidas/cli 1.10.24 → 1.10.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/cli",
3
- "version": "1.10.24",
3
+ "version": "1.10.25",
4
4
  "description": "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs",
5
5
  "private": false,
6
6
  "type": "module",
@@ -57,8 +57,8 @@
57
57
  "tsx": "~4.20.3",
58
58
  "yaml": "~2.8.2",
59
59
  "@geekmidas/constructs": "~3.0.5",
60
- "@geekmidas/envkit": "~1.0.4",
61
60
  "@geekmidas/errors": "~1.0.0",
61
+ "@geekmidas/envkit": "~1.0.4",
62
62
  "@geekmidas/logger": "~1.0.0",
63
63
  "@geekmidas/schema": "~1.0.0"
64
64
  },
package/src/exec/index.ts CHANGED
@@ -77,10 +77,13 @@ export async function execCommand(
77
77
 
78
78
  logger.log(`🚀 Running: ${[cmd, ...args].join(' ')}`);
79
79
 
80
- // Merge NODE_OPTIONS with existing value (if any)
81
- // The preload is .mjs so no tsx loader needed safe for frameworks
82
- // like Next.js whose workers inherit NODE_OPTIONS.
83
- const existingNodeOptions = process.env.NODE_OPTIONS ?? '';
80
+ // Build NODE_OPTIONS for the child process.
81
+ // Strip any --import flags from the inherited NODE_OPTIONSthe gkm binary
82
+ // adds --import=tsx for itself, but the spawned command (e.g. next, prisma)
83
+ // doesn't need it and it breaks frameworks that spawn their own workers.
84
+ const existingNodeOptions = (process.env.NODE_OPTIONS ?? '')
85
+ .replace(/--import[= ]\S+/g, '')
86
+ .trim();
84
87
  const preloadImport = `--import=${preloadPath}`;
85
88
 
86
89
  const nodeOptions = [existingNodeOptions, preloadImport]
@@ -42,7 +42,7 @@ export const GEEKMIDAS_VERSIONS = {
42
42
  '@geekmidas/rate-limit': '~2.0.0',
43
43
  '@geekmidas/schema': '~1.0.0',
44
44
  '@geekmidas/services': '~1.0.1',
45
- '@geekmidas/storage': '~2.0.1',
45
+ '@geekmidas/storage': '~2.0.2',
46
46
  '@geekmidas/studio': '~1.0.0',
47
47
  '@geekmidas/telescope': '~1.0.0',
48
48
  '@geekmidas/testkit': '~1.0.5',