@kimesh/cli 0.2.45 → 0.2.46
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/{_shared-JV2GOe_2.mjs → _shared-DICW88UF.mjs} +1 -2
- package/dist/{build-Bq05aTM1.mjs → build-kmEc8wdp.mjs} +3 -5
- package/dist/commands/init.mjs +1 -3
- package/dist/{dev-nJmJLBNi.mjs → dev-oLf-XB-t.mjs} +3 -5
- package/dist/{generate-B1_XPFaH.mjs → generate-_rgvqCk8.mjs} +2 -4
- package/dist/index.mjs +4 -7
- package/dist/{kit-Cj1Ou_JO.mjs → kit-B6kacgs-.mjs} +1 -3
- package/dist/{layer-CHJQAFwQ.mjs → layer-CGRdij3A.mjs} +3 -5
- package/dist/{main-oFtD4eNz.mjs → main-BRFJ9Ysq.mjs} +7 -10
- package/dist/main.mjs +2 -3
- package/dist/{prepare-Dxj92NpO.mjs → prepare-CwfSXCY0.mjs} +3 -5
- package/dist/run.mjs +2 -4
- package/package.json +4 -4
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { r as loadKit } from "./kit-
|
|
2
|
-
import { t as buildArgs } from "./_shared-
|
|
1
|
+
import { r as loadKit } from "./kit-B6kacgs-.mjs";
|
|
2
|
+
import { t as buildArgs } from "./_shared-DICW88UF.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
import consola from "consola";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
|
-
|
|
7
6
|
//#region src/commands/build.ts
|
|
8
7
|
var build_default = defineCommand({
|
|
9
8
|
meta: {
|
|
@@ -28,6 +27,5 @@ var build_default = defineCommand({
|
|
|
28
27
|
consola.success(`Build complete!`);
|
|
29
28
|
}
|
|
30
29
|
});
|
|
31
|
-
|
|
32
30
|
//#endregion
|
|
33
|
-
export { build_default as default };
|
|
31
|
+
export { build_default as default };
|
package/dist/commands/init.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import consola from "consola";
|
|
|
3
3
|
import pc from "picocolors";
|
|
4
4
|
import { join, resolve } from "node:path";
|
|
5
5
|
import * as fs from "node:fs";
|
|
6
|
-
|
|
7
6
|
//#region src/commands/init.ts
|
|
8
7
|
var init_default = defineCommand({
|
|
9
8
|
meta: {
|
|
@@ -185,6 +184,5 @@ Thumbs.db
|
|
|
185
184
|
function getProjectName(root) {
|
|
186
185
|
return (root.split(/[/\\]/).pop() || "my-app").toLowerCase().replace(/[^a-z0-9-]/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
187
186
|
}
|
|
188
|
-
|
|
189
187
|
//#endregion
|
|
190
|
-
export { init_default as default };
|
|
188
|
+
export { init_default as default };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { r as loadKit } from "./kit-
|
|
2
|
-
import { n as devArgs } from "./_shared-
|
|
1
|
+
import { r as loadKit } from "./kit-B6kacgs-.mjs";
|
|
2
|
+
import { n as devArgs } from "./_shared-DICW88UF.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
import consola from "consola";
|
|
5
5
|
import pc from "picocolors";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
|
-
|
|
8
7
|
//#region src/commands/dev.ts
|
|
9
8
|
var dev_default = defineCommand({
|
|
10
9
|
meta: {
|
|
@@ -71,6 +70,5 @@ function parseLayersArg(arg) {
|
|
|
71
70
|
if (layersArg === "none") return "none";
|
|
72
71
|
return layersArg.split(",").map((l) => l.trim()).filter(Boolean);
|
|
73
72
|
}
|
|
74
|
-
|
|
75
73
|
//#endregion
|
|
76
|
-
export { dev_default as default };
|
|
74
|
+
export { dev_default as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { i as sharedArgs } from "./_shared-
|
|
1
|
+
import { i as sharedArgs } from "./_shared-DICW88UF.mjs";
|
|
2
2
|
import { defineCommand } from "citty";
|
|
3
3
|
import consola from "consola";
|
|
4
4
|
import pc from "picocolors";
|
|
5
|
-
|
|
6
5
|
//#region src/commands/generate.ts
|
|
7
6
|
var generate_default = defineCommand({
|
|
8
7
|
meta: {
|
|
@@ -16,6 +15,5 @@ var generate_default = defineCommand({
|
|
|
16
15
|
consola.success(`Generation complete!`);
|
|
17
16
|
}
|
|
18
17
|
});
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
|
-
export { generate_default as default };
|
|
19
|
+
export { generate_default as default };
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { n as version, r as commands, t as main } from "./main-
|
|
1
|
+
import { n as version, r as commands, t as main } from "./main-BRFJ9Ysq.mjs";
|
|
2
2
|
import { run } from "./run.mjs";
|
|
3
|
-
import { n as getKit, r as loadKit, t as clearKitCache } from "./kit-
|
|
4
|
-
import { i as sharedArgs, n as devArgs, r as prepareArgs, t as buildArgs } from "./_shared-
|
|
3
|
+
import { n as getKit, r as loadKit, t as clearKitCache } from "./kit-B6kacgs-.mjs";
|
|
4
|
+
import { i as sharedArgs, n as devArgs, r as prepareArgs, t as buildArgs } from "./_shared-DICW88UF.mjs";
|
|
5
5
|
import consola from "consola";
|
|
6
6
|
import pc from "picocolors";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import { dirname, resolve } from "node:path";
|
|
9
|
-
|
|
10
9
|
//#region src/utils/paths.ts
|
|
11
10
|
/**
|
|
12
11
|
* Get the directory of the current module
|
|
@@ -34,7 +33,6 @@ function isGlobalInstall() {
|
|
|
34
33
|
const execPath = process.argv[1] || "";
|
|
35
34
|
return execPath.includes("/lib/node_modules/") || execPath.includes("\\node_modules\\npm\\");
|
|
36
35
|
}
|
|
37
|
-
|
|
38
36
|
//#endregion
|
|
39
37
|
//#region src/utils/logger.ts
|
|
40
38
|
const logger = consola.withTag("kmi");
|
|
@@ -77,6 +75,5 @@ async function withSpinner(message, fn) {
|
|
|
77
75
|
throw error;
|
|
78
76
|
}
|
|
79
77
|
}
|
|
80
|
-
|
|
81
78
|
//#endregion
|
|
82
|
-
export { banner, buildArgs, clearKitCache, commands, devArgs, getBuildDir, getCurrentDir, getKit, isGlobalInstall, loadKit, logger, main, prepareArgs, resolveRoot, run, sharedArgs, step, success, timing, version, withSpinner };
|
|
79
|
+
export { banner, buildArgs, clearKitCache, commands, devArgs, getBuildDir, getCurrentDir, getKit, isGlobalInstall, loadKit, logger, main, prepareArgs, resolveRoot, run, sharedArgs, step, success, timing, version, withSpinner };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import consola from "consola";
|
|
2
2
|
import { pathToFileURL } from "node:url";
|
|
3
3
|
import { resolveModulePath } from "exsolve";
|
|
4
|
-
|
|
5
4
|
//#region src/utils/kit.ts
|
|
6
5
|
let _kit;
|
|
7
6
|
/**
|
|
@@ -33,6 +32,5 @@ function getKit() {
|
|
|
33
32
|
function clearKitCache() {
|
|
34
33
|
_kit = void 0;
|
|
35
34
|
}
|
|
36
|
-
|
|
37
35
|
//#endregion
|
|
38
|
-
export { getKit as n, loadKit as r, clearKitCache as t };
|
|
36
|
+
export { getKit as n, loadKit as r, clearKitCache as t };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { r as loadKit } from "./kit-
|
|
2
|
-
import { i as sharedArgs } from "./_shared-
|
|
1
|
+
import { r as loadKit } from "./kit-B6kacgs-.mjs";
|
|
2
|
+
import { i as sharedArgs } from "./_shared-DICW88UF.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
import consola from "consola";
|
|
5
5
|
import pc from "picocolors";
|
|
6
6
|
import { join, resolve } from "node:path";
|
|
7
7
|
import * as fs from "node:fs";
|
|
8
|
-
|
|
9
8
|
//#region src/commands/layer.ts
|
|
10
9
|
var layer_default = defineCommand({
|
|
11
10
|
meta: {
|
|
@@ -246,6 +245,5 @@ var layer_default = defineCommand({
|
|
|
246
245
|
function toPascalCase(str) {
|
|
247
246
|
return str.split(/[-_]/).map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase()).join("");
|
|
248
247
|
}
|
|
249
|
-
|
|
250
248
|
//#endregion
|
|
251
|
-
export { layer_default as default };
|
|
249
|
+
export { layer_default as default };
|
|
@@ -2,22 +2,20 @@ import { createRequire } from "node:module";
|
|
|
2
2
|
import { defineCommand } from "citty";
|
|
3
3
|
import consola from "consola";
|
|
4
4
|
import pc from "picocolors";
|
|
5
|
-
|
|
6
5
|
//#region src/commands/index.ts
|
|
7
6
|
/**
|
|
8
7
|
* Command registry with lazy loading
|
|
9
8
|
* Commands are only imported when actually used
|
|
10
9
|
*/
|
|
11
10
|
const commands = {
|
|
12
|
-
dev: () => import("./dev-
|
|
13
|
-
build: () => import("./build-
|
|
14
|
-
generate: () => import("./generate-
|
|
15
|
-
prepare: () => import("./prepare-
|
|
16
|
-
layer: () => import("./layer-
|
|
11
|
+
dev: () => import("./dev-oLf-XB-t.mjs").then((m) => m.default),
|
|
12
|
+
build: () => import("./build-kmEc8wdp.mjs").then((m) => m.default),
|
|
13
|
+
generate: () => import("./generate-_rgvqCk8.mjs").then((m) => m.default),
|
|
14
|
+
prepare: () => import("./prepare-CwfSXCY0.mjs").then((m) => m.default),
|
|
15
|
+
layer: () => import("./layer-CGRdij3A.mjs").then((m) => m.default),
|
|
17
16
|
init: () => import("./commands/init.mjs").then((m) => m.default),
|
|
18
|
-
start: () => import("./dev-
|
|
17
|
+
start: () => import("./dev-oLf-XB-t.mjs").then((m) => m.default)
|
|
19
18
|
};
|
|
20
|
-
|
|
21
19
|
//#endregion
|
|
22
20
|
//#region src/main.ts
|
|
23
21
|
const version = createRequire(import.meta.url)("../package.json").version;
|
|
@@ -43,6 +41,5 @@ const main = defineCommand({
|
|
|
43
41
|
consola.log(pc.cyan(`\n 🚀 Kimesh Framework v${version}\n`));
|
|
44
42
|
}
|
|
45
43
|
});
|
|
46
|
-
|
|
47
44
|
//#endregion
|
|
48
|
-
export { version as n, commands as r, main as t };
|
|
45
|
+
export { version as n, commands as r, main as t };
|
package/dist/main.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { n as version, t as main } from "./main-
|
|
2
|
-
|
|
3
|
-
export { main, version };
|
|
1
|
+
import { n as version, t as main } from "./main-BRFJ9Ysq.mjs";
|
|
2
|
+
export { main, version };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { r as loadKit } from "./kit-
|
|
2
|
-
import { r as prepareArgs } from "./_shared-
|
|
1
|
+
import { r as loadKit } from "./kit-B6kacgs-.mjs";
|
|
2
|
+
import { r as prepareArgs } from "./_shared-DICW88UF.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
import consola from "consola";
|
|
5
5
|
import pc from "picocolors";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
|
-
|
|
8
7
|
//#region src/commands/prepare.ts
|
|
9
8
|
var prepare_default = defineCommand({
|
|
10
9
|
meta: {
|
|
@@ -39,6 +38,5 @@ var prepare_default = defineCommand({
|
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
});
|
|
42
|
-
|
|
43
41
|
//#endregion
|
|
44
|
-
export { prepare_default as default };
|
|
42
|
+
export { prepare_default as default };
|
package/dist/run.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as main } from "./main-
|
|
1
|
+
import { t as main } from "./main-BRFJ9Ysq.mjs";
|
|
2
2
|
import { runMain } from "citty";
|
|
3
|
-
|
|
4
3
|
//#region src/run.ts
|
|
5
4
|
/**
|
|
6
5
|
* Run the CLI
|
|
@@ -10,6 +9,5 @@ function run() {
|
|
|
10
9
|
runMain(main);
|
|
11
10
|
}
|
|
12
11
|
run();
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
|
-
export { run };
|
|
13
|
+
export { run };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kimesh/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.46",
|
|
4
4
|
"description": "Kimesh Framework CLI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"typecheck": "tsc --noEmit"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@kimesh/kit": "0.2.
|
|
40
|
+
"@kimesh/kit": "0.2.46",
|
|
41
41
|
"citty": "^0.1.6",
|
|
42
42
|
"consola": "^3.4.2",
|
|
43
43
|
"exsolve": "^1.0.8",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^25.3.0",
|
|
48
|
-
"tsdown": "^0.
|
|
48
|
+
"tsdown": "^0.21.2",
|
|
49
49
|
"typescript": "^5.9.3"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"vite": "^8.0.0
|
|
52
|
+
"vite": "^8.0.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"vite": {
|