@kanjijs/cli 0.2.0-beta.25 → 0.2.0-beta.26
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 +10 -5
- package/package.json +2 -2
- package/templates/starter/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20100,11 +20100,16 @@ ${exportStatement}`);
|
|
|
20100
20100
|
if (!deps["postgres"])
|
|
20101
20101
|
missing.push("postgres");
|
|
20102
20102
|
if (missing.length > 0) {
|
|
20103
|
-
|
|
20104
|
-
|
|
20105
|
-
|
|
20106
|
-
}
|
|
20107
|
-
console.
|
|
20103
|
+
const hasWorkspaceDeps = Object.values(deps).some((value) => typeof value === "string" && value.startsWith("workspace:"));
|
|
20104
|
+
if (hasWorkspaceDeps) {
|
|
20105
|
+
console.log(import_picocolors2.default.yellow("Detected workspace:* dependencies in your package.json. " + "Skipping auto-install. Please run bun add manually from a workspace root or " + "replace workspace:* with published versions."));
|
|
20106
|
+
} else {
|
|
20107
|
+
console.log(import_picocolors2.default.yellow(`Installing missing dependencies for Repository pattern: ${missing.join(", ")}...`));
|
|
20108
|
+
try {
|
|
20109
|
+
execSync(`bun add ${missing.join(" ")}`, { stdio: "inherit" });
|
|
20110
|
+
} catch (e) {
|
|
20111
|
+
console.error(import_picocolors2.default.red("Failed to install dependencies. Please install them manually."));
|
|
20112
|
+
}
|
|
20108
20113
|
}
|
|
20109
20114
|
}
|
|
20110
20115
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanjijs/cli",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.26",
|
|
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.
|
|
24
|
+
"@kanjijs/openapi": "^0.2.0-beta.26"
|
|
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.
|
|
11
|
-
"@kanjijs/platform-bun": "^0.2.0-beta.
|
|
12
|
-
"@kanjijs/platform-hono": "^0.2.0-beta.
|
|
13
|
-
"@kanjijs/auth": "^0.2.0-beta.
|
|
14
|
-
"@kanjijs/logger": "^0.2.0-beta.
|
|
15
|
-
"@kanjijs/throttler": "^0.2.0-beta.
|
|
10
|
+
"@kanjijs/core": "^0.2.0-beta.26",
|
|
11
|
+
"@kanjijs/platform-bun": "^0.2.0-beta.26",
|
|
12
|
+
"@kanjijs/platform-hono": "^0.2.0-beta.26",
|
|
13
|
+
"@kanjijs/auth": "^0.2.0-beta.26",
|
|
14
|
+
"@kanjijs/logger": "^0.2.0-beta.26",
|
|
15
|
+
"@kanjijs/throttler": "^0.2.0-beta.26",
|
|
16
16
|
"hono": "^4.0.0",
|
|
17
17
|
"reflect-metadata": "^0.2.0",
|
|
18
18
|
"zod": "^3.0.0"
|