@geekmidas/cli 1.10.23 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @geekmidas/cli
2
2
 
3
+ ## 1.10.25
4
+
5
+ ### Patch Changes
6
+
7
+ - 🐛 [`26765a3`](https://github.com/geekmidas/toolbox/commit/26765a3d1ce6a568e609011ab218455a1062dd2c) Thanks [@geekmidas](https://github.com/geekmidas)! - Fix node options on exec
8
+
9
+ ## 1.10.24
10
+
11
+ ### Patch Changes
12
+
13
+ - 🐛 [`b3565b8`](https://github.com/geekmidas/toolbox/commit/b3565b89e57f100157faf82d89077c3d24df78fd) Thanks [@geekmidas](https://github.com/geekmidas)! - Fix exec script to load mjs instead of ts
14
+
3
15
  ## 1.10.23
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -35,7 +35,7 @@ const prompts = require_chunk.__toESM(require("prompts"));
35
35
 
36
36
  //#region package.json
37
37
  var name = "@geekmidas/cli";
38
- var version = "1.10.22";
38
+ var version = "1.10.24";
39
39
  var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
40
40
  var private$1 = false;
41
41
  var type = "module";
@@ -1113,20 +1113,14 @@ async function execCommand(commandArgs, options = {}) {
1113
1113
  if (secretCount > 0) logger$12.log(`🔐 Loaded ${secretCount} secret(s)`);
1114
1114
  const preloadDir = (0, node_path.join)(cwd, ".gkm");
1115
1115
  await (0, node_fs_promises.mkdir)(preloadDir, { recursive: true });
1116
- const preloadPath = (0, node_path.join)(preloadDir, "credentials-preload.ts");
1116
+ const preloadPath = (0, node_path.join)(preloadDir, "credentials-preload.mjs");
1117
1117
  await createCredentialsPreload(preloadPath, secretsJsonPath);
1118
- const [cmd, ...rawArgs] = commandArgs;
1118
+ const [cmd, ...args] = commandArgs;
1119
1119
  if (!cmd) throw new Error("No command specified");
1120
- const args = rawArgs.map((arg) => arg.replace(/\$PORT\b/g, credentials.PORT ?? "3000"));
1121
1120
  logger$12.log(`🚀 Running: ${[cmd, ...args].join(" ")}`);
1122
- const existingNodeOptions = process.env.NODE_OPTIONS ?? "";
1123
- const tsxImport = "--import=tsx";
1121
+ const existingNodeOptions = (process.env.NODE_OPTIONS ?? "").replace(/--import[= ]\S+/g, "").trim();
1124
1122
  const preloadImport = `--import=${preloadPath}`;
1125
- const nodeOptions = [
1126
- existingNodeOptions,
1127
- tsxImport,
1128
- preloadImport
1129
- ].filter(Boolean).join(" ");
1123
+ const nodeOptions = [existingNodeOptions, preloadImport].filter(Boolean).join(" ");
1130
1124
  const child = (0, node_child_process.spawn)(cmd, args, {
1131
1125
  cwd,
1132
1126
  stdio: "inherit",
@@ -6857,7 +6851,7 @@ const GEEKMIDAS_VERSIONS = {
6857
6851
  "@geekmidas/rate-limit": "~2.0.0",
6858
6852
  "@geekmidas/schema": "~1.0.0",
6859
6853
  "@geekmidas/services": "~1.0.1",
6860
- "@geekmidas/storage": "~2.0.1",
6854
+ "@geekmidas/storage": "~2.0.2",
6861
6855
  "@geekmidas/studio": "~1.0.0",
6862
6856
  "@geekmidas/telescope": "~1.0.0",
6863
6857
  "@geekmidas/testkit": "~1.0.5",
@@ -10740,7 +10734,7 @@ function generateWebAppFiles(options) {
10740
10734
  private: true,
10741
10735
  type: "module",
10742
10736
  scripts: {
10743
- dev: "gkm exec -- next dev --turbopack -p $PORT",
10737
+ dev: "gkm exec -- next dev --turbopack",
10744
10738
  build: "gkm exec -- next build",
10745
10739
  start: "next start",
10746
10740
  typecheck: "tsc --noEmit"