@kanjijs/cli 0.2.0-beta.28 → 0.2.0-beta.29

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/dist/index.js CHANGED
@@ -20001,8 +20001,8 @@ class DevCommand extends Command2 {
20001
20001
  // src/commands/generate.command.ts
20002
20002
  var import_fs_extra = __toESM(require_lib(), 1);
20003
20003
  var import_picocolors2 = __toESM(require_picocolors(), 1);
20004
- import path2 from "path";
20005
20004
  import { execSync } from "child_process";
20005
+ import path2 from "path";
20006
20006
  class GenerateCommand extends Command2 {
20007
20007
  load(program2) {
20008
20008
  program2.command("g <type> <name>").description("Generate a new resource (e.g. 'kanjijs g resource users')").alias("generate").option("-r, --repository", "Generate with Repository pattern").option("-m, --module <name>", "Generate schema in a specific module").action(async (type, name, options) => {
@@ -20097,7 +20097,7 @@ ${exportStatement}`);
20097
20097
  missing.push("@kanjijs/store");
20098
20098
  if (!deps["drizzle-orm"])
20099
20099
  missing.push("drizzle-orm");
20100
- if (!deps["postgres"])
20100
+ if (!deps.postgres)
20101
20101
  missing.push("postgres");
20102
20102
  if (missing.length > 0) {
20103
20103
  const hasWorkspaceDeps = Object.values(deps).some((value) => typeof value === "string" && value.startsWith("workspace:"));
@@ -20107,7 +20107,7 @@ ${exportStatement}`);
20107
20107
  console.log(import_picocolors2.default.yellow(`Installing missing dependencies for Repository pattern: ${missing.join(", ")}...`));
20108
20108
  try {
20109
20109
  execSync(`bun add ${missing.join(" ")}`, { stdio: "inherit" });
20110
- } catch (e) {
20110
+ } catch (_e) {
20111
20111
  console.error(import_picocolors2.default.red("Failed to install dependencies. Please install them manually."));
20112
20112
  }
20113
20113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanjijs/cli",
3
- "version": "0.2.0-beta.28",
3
+ "version": "0.2.0-beta.29",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "kanji": "./dist/index.js"
@@ -21,7 +21,7 @@
21
21
  "fs-extra": "^11.3.3",
22
22
  "picocolors": "^1.1.1",
23
23
  "openapi-typescript-codegen": "^0.25.0",
24
- "@kanjijs/openapi": "^0.2.0-beta.28"
24
+ "@kanjijs/openapi": "^0.2.0-beta.29"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/fs-extra": "^11.0.4"
@@ -7,12 +7,12 @@
7
7
  "start": "bun run src/main.ts"
8
8
  },
9
9
  "dependencies": {
10
- "@kanjijs/core": "^0.2.0-beta.28",
11
- "@kanjijs/platform-bun": "^0.2.0-beta.28",
12
- "@kanjijs/platform-hono": "^0.2.0-beta.28",
13
- "@kanjijs/auth": "^0.2.0-beta.28",
14
- "@kanjijs/logger": "^0.2.0-beta.28",
15
- "@kanjijs/throttler": "^0.2.0-beta.28",
10
+ "@kanjijs/core": "^0.2.0-beta.29",
11
+ "@kanjijs/platform-bun": "^0.2.0-beta.29",
12
+ "@kanjijs/platform-hono": "^0.2.0-beta.29",
13
+ "@kanjijs/auth": "^0.2.0-beta.29",
14
+ "@kanjijs/logger": "^0.2.0-beta.29",
15
+ "@kanjijs/throttler": "^0.2.0-beta.29",
16
16
  "hono": "^4.0.0",
17
17
  "reflect-metadata": "^0.2.0",
18
18
  "zod": "^3.0.0"