@geekmidas/cli 1.10.22 → 1.10.24
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 +12 -0
- package/bin/gkm.mjs +11 -2
- package/dist/index.cjs +7 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/exec/index.ts +7 -12
- package/src/init/__tests__/init.spec.ts +0 -1
- package/src/init/generators/web.ts +1 -1
- package/src/init/versions.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -35,7 +35,7 @@ import prompts from "prompts";
|
|
|
35
35
|
|
|
36
36
|
//#region package.json
|
|
37
37
|
var name = "@geekmidas/cli";
|
|
38
|
-
var version = "1.10.
|
|
38
|
+
var version = "1.10.23";
|
|
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 = join(cwd, ".gkm");
|
|
1115
1115
|
await mkdir(preloadDir, { recursive: true });
|
|
1116
|
-
const preloadPath = join(preloadDir, "credentials-preload.
|
|
1116
|
+
const preloadPath = join(preloadDir, "credentials-preload.mjs");
|
|
1117
1117
|
await createCredentialsPreload(preloadPath, secretsJsonPath);
|
|
1118
|
-
const [cmd, ...
|
|
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
1121
|
const existingNodeOptions = process.env.NODE_OPTIONS ?? "";
|
|
1123
|
-
const tsxImport = "--import=tsx";
|
|
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 = spawn(cmd, args, {
|
|
1131
1125
|
cwd,
|
|
1132
1126
|
stdio: "inherit",
|
|
@@ -6845,9 +6839,9 @@ const GEEKMIDAS_VERSIONS = {
|
|
|
6845
6839
|
"@geekmidas/audit": "~2.0.0",
|
|
6846
6840
|
"@geekmidas/auth": "~2.0.0",
|
|
6847
6841
|
"@geekmidas/cache": "~1.1.0",
|
|
6848
|
-
"@geekmidas/client": "~4.0.
|
|
6842
|
+
"@geekmidas/client": "~4.0.4",
|
|
6849
6843
|
"@geekmidas/cloud": "~1.0.0",
|
|
6850
|
-
"@geekmidas/constructs": "~3.0.
|
|
6844
|
+
"@geekmidas/constructs": "~3.0.5",
|
|
6851
6845
|
"@geekmidas/db": "~1.0.1",
|
|
6852
6846
|
"@geekmidas/emailkit": "~1.0.0",
|
|
6853
6847
|
"@geekmidas/envkit": "~1.0.4",
|
|
@@ -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
|
|
10737
|
+
dev: "gkm exec -- next dev --turbopack",
|
|
10744
10738
|
build: "gkm exec -- next build",
|
|
10745
10739
|
start: "next start",
|
|
10746
10740
|
typecheck: "tsc --noEmit"
|