@geekmidas/cli 1.0.0 → 1.0.1

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,11 @@
1
1
  # @geekmidas/cli
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`169ccd6`](https://github.com/geekmidas/toolbox/commit/169ccd62ada0dfd23f47434b57b967213d1538e5) Thanks [@geekmidas](https://github.com/geekmidas)! - Use the correct version for cli dependencies
8
+
3
9
  ## 1.0.0
4
10
 
5
11
  ### Major Changes
package/dist/index.cjs CHANGED
@@ -32,7 +32,7 @@ const prompts = require_chunk.__toESM(require("prompts"));
32
32
 
33
33
  //#region package.json
34
34
  var name = "@geekmidas/cli";
35
- var version = "0.54.0";
35
+ var version = "1.0.0";
36
36
  var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
37
37
  var private$1 = false;
38
38
  var type = "module";
@@ -66,6 +66,8 @@ var exports$1 = {
66
66
  var bin = { "gkm": "./dist/index.cjs" };
67
67
  var scripts = {
68
68
  "ts": "tsc --noEmit --skipLibCheck src/**/*.ts",
69
+ "sync-versions": "tsx scripts/sync-versions.ts",
70
+ "prebuild": "pnpm sync-versions",
69
71
  "test": "vitest",
70
72
  "test:once": "vitest run",
71
73
  "test:coverage": "vitest run --coverage"
@@ -1124,13 +1126,13 @@ async function validateFrontendApp(appName, appPath, workspaceRoot) {
1124
1126
  if (!hasConfigFile) errors.push(`Next.js config file not found. Expected one of: ${NEXTJS_CONFIG_FILES.join(", ")}`);
1125
1127
  const packageJsonPath = (0, node_path.join)(fullPath, "package.json");
1126
1128
  if ((0, node_fs.existsSync)(packageJsonPath)) try {
1127
- const pkg$1 = require(packageJsonPath);
1129
+ const pkg = require(packageJsonPath);
1128
1130
  const deps = {
1129
- ...pkg$1.dependencies,
1130
- ...pkg$1.devDependencies
1131
+ ...pkg.dependencies,
1132
+ ...pkg.devDependencies
1131
1133
  };
1132
1134
  if (!deps.next) errors.push("Next.js not found in dependencies. Run: pnpm add next react react-dom");
1133
- if (!pkg$1.scripts?.dev) warnings.push("No \"dev\" script found in package.json. Turbo expects a \"dev\" script to run.");
1135
+ if (!pkg.scripts?.dev) warnings.push("No \"dev\" script found in package.json. Turbo expects a \"dev\" script to run.");
1134
1136
  } catch {
1135
1137
  errors.push(`Failed to read package.json at ${packageJsonPath}`);
1136
1138
  }
@@ -3363,8 +3365,8 @@ function resolveDockerConfig$1(config) {
3363
3365
  const docker = config.docker ?? {};
3364
3366
  let defaultImageName = "api";
3365
3367
  try {
3366
- const pkg$1 = require(`${process.cwd()}/package.json`);
3367
- if (pkg$1.name) defaultImageName = pkg$1.name.replace(/^@[^/]+\//, "");
3368
+ const pkg = require(`${process.cwd()}/package.json`);
3369
+ if (pkg.name) defaultImageName = pkg.name.replace(/^@[^/]+\//, "");
3368
3370
  } catch {}
3369
3371
  return {
3370
3372
  registry: docker.registry ?? "",
@@ -3720,9 +3722,9 @@ async function dockerCommand(options) {
3720
3722
  } else throw new Error("Monorepo detected but turbo.json not found.\n\nDocker builds in monorepos require Turborepo for proper dependency isolation.\n\nTo fix this:\n 1. Install turbo: pnpm add -Dw turbo\n 2. Create turbo.json in your monorepo root\n 3. Run this command again\n\nSee: https://turbo.build/repo/docs/guides/tools/docker");
3721
3723
  let turboPackage = options.turboPackage ?? dockerConfig.imageName;
3722
3724
  if (useTurbo && !options.turboPackage) try {
3723
- const pkg$1 = require(`${process.cwd()}/package.json`);
3724
- if (pkg$1.name) {
3725
- turboPackage = pkg$1.name;
3725
+ const pkg = require(`${process.cwd()}/package.json`);
3726
+ if (pkg.name) {
3727
+ turboPackage = pkg.name;
3726
3728
  logger$5.log(` Turbo package: ${turboPackage}`);
3727
3729
  }
3728
3730
  } catch {}
@@ -3847,8 +3849,8 @@ function getAppPackageName(appPath) {
3847
3849
  const pkgPath = (0, node_path.join)(appPath, "package.json");
3848
3850
  if (!(0, node_fs.existsSync)(pkgPath)) return void 0;
3849
3851
  const content = (0, node_fs.readFileSync)(pkgPath, "utf-8");
3850
- const pkg$1 = JSON.parse(content);
3851
- return pkg$1.name;
3852
+ const pkg = JSON.parse(content);
3853
+ return pkg.name;
3852
3854
  } catch {
3853
3855
  return void 0;
3854
3856
  }
@@ -3944,8 +3946,8 @@ function getAppNameFromCwd$1() {
3944
3946
  const packageJsonPath = (0, node_path.join)(process.cwd(), "package.json");
3945
3947
  if (!(0, node_fs.existsSync)(packageJsonPath)) return void 0;
3946
3948
  try {
3947
- const pkg$1 = JSON.parse((0, node_fs.readFileSync)(packageJsonPath, "utf-8"));
3948
- if (pkg$1.name) return pkg$1.name.replace(/^@[^/]+\//, "");
3949
+ const pkg = JSON.parse((0, node_fs.readFileSync)(packageJsonPath, "utf-8"));
3950
+ if (pkg.name) return pkg.name.replace(/^@[^/]+\//, "");
3949
3951
  } catch {}
3950
3952
  return void 0;
3951
3953
  }
@@ -3961,8 +3963,8 @@ function getAppNameFromPackageJson() {
3961
3963
  const packageJsonPath = (0, node_path.join)(projectRoot, "package.json");
3962
3964
  if (!(0, node_fs.existsSync)(packageJsonPath)) return void 0;
3963
3965
  try {
3964
- const pkg$1 = JSON.parse((0, node_fs.readFileSync)(packageJsonPath, "utf-8"));
3965
- if (pkg$1.name) return pkg$1.name.replace(/^@[^/]+\//, "");
3966
+ const pkg = JSON.parse((0, node_fs.readFileSync)(packageJsonPath, "utf-8"));
3967
+ if (pkg.name) return pkg.name.replace(/^@[^/]+\//, "");
3966
3968
  } catch {}
3967
3969
  return void 0;
3968
3970
  }
@@ -4657,8 +4659,8 @@ const __dirname$1 = (0, node_path.dirname)(__filename$1);
4657
4659
  * This ensures tsx is available regardless of whether the target project has it installed.
4658
4660
  */
4659
4661
  function resolveTsxPath() {
4660
- const require$2 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
4661
- return require$2.resolve("tsx");
4662
+ const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
4663
+ return require$1.resolve("tsx");
4662
4664
  }
4663
4665
  /**
4664
4666
  * Resolve the path to a sniffer helper file.
@@ -6290,45 +6292,33 @@ function rotateServicePassword(secrets, service) {
6290
6292
 
6291
6293
  //#endregion
6292
6294
  //#region src/init/versions.ts
6293
- const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
6294
- function loadPackageJson() {
6295
- try {
6296
- return require$1("../package.json");
6297
- } catch {
6298
- return require$1("../../package.json");
6299
- }
6300
- }
6301
- const pkg = loadPackageJson();
6302
6295
  /**
6303
- * CLI version from package.json (used for scaffolded projects)
6304
- */
6305
- const CLI_VERSION = `~${pkg.version}`;
6306
- /**
6307
- * Current released versions of @geekmidas packages
6308
- * Update these when publishing new versions
6309
- * Note: CLI version is read from package.json via CLI_VERSION
6296
+ * Package versions for @geekmidas packages
6297
+ *
6298
+ * AUTO-GENERATED - Do not edit manually
6299
+ * Run: pnpm --filter @geekmidas/cli sync-versions
6310
6300
  */
6311
6301
  const GEEKMIDAS_VERSIONS = {
6312
- "@geekmidas/audit": "~0.2.0",
6313
- "@geekmidas/auth": "~0.2.0",
6314
- "@geekmidas/cache": "~0.2.0",
6315
- "@geekmidas/cli": CLI_VERSION,
6316
- "@geekmidas/client": "~0.5.0",
6317
- "@geekmidas/cloud": "~0.2.0",
6318
- "@geekmidas/constructs": "~0.8.0",
6319
- "@geekmidas/db": "~0.3.0",
6320
- "@geekmidas/emailkit": "~0.2.0",
6321
- "@geekmidas/envkit": "~0.7.0",
6322
- "@geekmidas/errors": "~0.1.0",
6323
- "@geekmidas/events": "~0.2.0",
6324
- "@geekmidas/logger": "~0.4.0",
6325
- "@geekmidas/rate-limit": "~0.3.0",
6326
- "@geekmidas/schema": "~0.1.0",
6327
- "@geekmidas/services": "~0.2.0",
6328
- "@geekmidas/storage": "~0.1.0",
6329
- "@geekmidas/studio": "~0.4.0",
6330
- "@geekmidas/telescope": "~0.6.0",
6331
- "@geekmidas/testkit": "~0.6.0"
6302
+ "@geekmidas/audit": "~1.0.0",
6303
+ "@geekmidas/auth": "~1.0.0",
6304
+ "@geekmidas/cache": "~1.0.0",
6305
+ "@geekmidas/cli": "~1.0.0",
6306
+ "@geekmidas/client": "~1.0.0",
6307
+ "@geekmidas/cloud": "~1.0.0",
6308
+ "@geekmidas/constructs": "~1.0.0",
6309
+ "@geekmidas/db": "~1.0.0",
6310
+ "@geekmidas/emailkit": "~1.0.0",
6311
+ "@geekmidas/envkit": "~1.0.0",
6312
+ "@geekmidas/errors": "~1.0.0",
6313
+ "@geekmidas/events": "~1.0.0",
6314
+ "@geekmidas/logger": "~1.0.0",
6315
+ "@geekmidas/rate-limit": "~1.0.0",
6316
+ "@geekmidas/schema": "~1.0.0",
6317
+ "@geekmidas/services": "~1.0.0",
6318
+ "@geekmidas/storage": "~1.0.0",
6319
+ "@geekmidas/studio": "~1.0.0",
6320
+ "@geekmidas/telescope": "~1.0.0",
6321
+ "@geekmidas/testkit": "~1.0.0"
6332
6322
  };
6333
6323
 
6334
6324
  //#endregion