create-kimesh 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/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { a as transformTemplateToLayer, i as toPascalCase, n as generatePackageName, o as validateLayerName, t as DEFAULT_KIMESH_VERSION } from "./layer-
|
|
2
|
-
import { A as hasUnmetDependencies, B as promptNpmScope, C as fetchTemplate, D as isValidTemplateName, E as getTemplateSource, F as isValidModuleId, G as promptProjectName, H as promptUpdateHost, I as parseModulesArg, K as validateProjectName, L as promptHostAppSelection, M as AVAILABLE_MODULES, N as getModule, O as promptModuleSelection, P as getModuleIds, R as promptLayerDirectory, S as fetchAllTemplates, T as getTemplateNames, U as promptDirectoryConflict, V as promptProjectType, W as promptNewDirectoryName, _ as detectPreferredPackageManager, a as findHostApps, b as installDependencies, c as collectPackages, d as installModules, f as installNpmPackages, g as promptPackageManager, h as promptInstallDeps, i as detectMonorepoRoot, j as resolveModules, k as getModuleDisplayHint, l as generateModuleFiles, m as promptGitInit, n as addLayerToHost, o as getRecommendedLayerDir, p as updateKimeshConfig, r as canUpdateHost, s as isInWorkspace, t as main, u as getInstallSummary, v as downloadProjectTemplate, w as getDefaultTemplateName, x as promptTemplateSelection, y as initGitRepo, z as promptLayerName } from "./main
|
|
3
|
-
|
|
4
|
-
export { AVAILABLE_MODULES, DEFAULT_KIMESH_VERSION, addLayerToHost, canUpdateHost, collectPackages, detectMonorepoRoot, detectPreferredPackageManager, downloadProjectTemplate, fetchAllTemplates, fetchTemplate, findHostApps, generateModuleFiles, generatePackageName, getDefaultTemplateName, getInstallSummary, getModule, getModuleDisplayHint, getModuleIds, getRecommendedLayerDir, getTemplateNames, getTemplateSource, hasUnmetDependencies, initGitRepo, installDependencies, installModules, installNpmPackages, isInWorkspace, isValidModuleId, isValidTemplateName, main, parseModulesArg, promptDirectoryConflict, promptGitInit, promptHostAppSelection, promptInstallDeps, promptLayerDirectory, promptLayerName, promptModuleSelection, promptNewDirectoryName, promptNpmScope, promptPackageManager, promptProjectName, promptProjectType, promptTemplateSelection, promptUpdateHost, resolveModules, toPascalCase, transformTemplateToLayer, updateKimeshConfig, validateLayerName, validateProjectName };
|
|
1
|
+
import { a as transformTemplateToLayer, i as toPascalCase, n as generatePackageName, o as validateLayerName, t as DEFAULT_KIMESH_VERSION } from "./layer-BYUYJ1ln.mjs";
|
|
2
|
+
import { A as hasUnmetDependencies, B as promptNpmScope, C as fetchTemplate, D as isValidTemplateName, E as getTemplateSource, F as isValidModuleId, G as promptProjectName, H as promptUpdateHost, I as parseModulesArg, K as validateProjectName, L as promptHostAppSelection, M as AVAILABLE_MODULES, N as getModule, O as promptModuleSelection, P as getModuleIds, R as promptLayerDirectory, S as fetchAllTemplates, T as getTemplateNames, U as promptDirectoryConflict, V as promptProjectType, W as promptNewDirectoryName, _ as detectPreferredPackageManager, a as findHostApps, b as installDependencies, c as collectPackages, d as installModules, f as installNpmPackages, g as promptPackageManager, h as promptInstallDeps, i as detectMonorepoRoot, j as resolveModules, k as getModuleDisplayHint, l as generateModuleFiles, m as promptGitInit, n as addLayerToHost, o as getRecommendedLayerDir, p as updateKimeshConfig, r as canUpdateHost, s as isInWorkspace, t as main, u as getInstallSummary, v as downloadProjectTemplate, w as getDefaultTemplateName, x as promptTemplateSelection, y as initGitRepo, z as promptLayerName } from "./main--7fyoTg4.mjs";
|
|
3
|
+
export { AVAILABLE_MODULES, DEFAULT_KIMESH_VERSION, addLayerToHost, canUpdateHost, collectPackages, detectMonorepoRoot, detectPreferredPackageManager, downloadProjectTemplate, fetchAllTemplates, fetchTemplate, findHostApps, generateModuleFiles, generatePackageName, getDefaultTemplateName, getInstallSummary, getModule, getModuleDisplayHint, getModuleIds, getRecommendedLayerDir, getTemplateNames, getTemplateSource, hasUnmetDependencies, initGitRepo, installDependencies, installModules, installNpmPackages, isInWorkspace, isValidModuleId, isValidTemplateName, main, parseModulesArg, promptDirectoryConflict, promptGitInit, promptHostAppSelection, promptInstallDeps, promptLayerDirectory, promptLayerName, promptModuleSelection, promptNewDirectoryName, promptNpmScope, promptPackageManager, promptProjectName, promptProjectType, promptTemplateSelection, promptUpdateHost, resolveModules, toPascalCase, transformTemplateToLayer, updateKimeshConfig, validateLayerName, validateProjectName };
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
4
|
-
|
|
5
4
|
//#region \0rolldown/runtime.js
|
|
6
5
|
var __defProp = Object.defineProperty;
|
|
7
6
|
var __exportAll = (all, no_symbols) => {
|
|
8
7
|
let target = {};
|
|
9
|
-
for (var name in all) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
if (!no_symbols) {
|
|
16
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
17
|
-
}
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
13
|
return target;
|
|
19
14
|
};
|
|
20
|
-
|
|
21
15
|
//#endregion
|
|
22
16
|
//#region src/utils/layer.ts
|
|
23
17
|
var layer_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -219,6 +213,5 @@ function generatePackageName(layerName, scope) {
|
|
|
219
213
|
if (scope) return `${scope.startsWith("@") ? scope : `@${scope}`}/${layerName}`;
|
|
220
214
|
return layerName;
|
|
221
215
|
}
|
|
222
|
-
|
|
223
216
|
//#endregion
|
|
224
|
-
export { transformTemplateToLayer as a, toPascalCase as i, generatePackageName as n, validateLayerName as o, layer_exports as r, DEFAULT_KIMESH_VERSION as t };
|
|
217
|
+
export { transformTemplateToLayer as a, toPascalCase as i, generatePackageName as n, validateLayerName as o, layer_exports as r, DEFAULT_KIMESH_VERSION as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as transformTemplateToLayer, n as generatePackageName, o as validateLayerName, t as DEFAULT_KIMESH_VERSION } from "./layer-
|
|
1
|
+
import { a as transformTemplateToLayer, n as generatePackageName, o as validateLayerName, t as DEFAULT_KIMESH_VERSION } from "./layer-BYUYJ1ln.mjs";
|
|
2
2
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { dirname, join, relative, resolve } from "node:path";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
@@ -10,7 +10,6 @@ import { downloadTemplate } from "giget";
|
|
|
10
10
|
import { addDependency } from "nypm";
|
|
11
11
|
import { builders, generateCode, parseModule } from "magicast";
|
|
12
12
|
import { parse } from "yaml";
|
|
13
|
-
|
|
14
13
|
//#region src/prompts/project-name.ts
|
|
15
14
|
/**
|
|
16
15
|
* Validation regex for project names
|
|
@@ -45,7 +44,6 @@ async function promptProjectName(defaultName = "kimesh-app") {
|
|
|
45
44
|
}
|
|
46
45
|
return result.trim();
|
|
47
46
|
}
|
|
48
|
-
|
|
49
47
|
//#endregion
|
|
50
48
|
//#region src/prompts/directory-conflict.ts
|
|
51
49
|
/**
|
|
@@ -101,7 +99,6 @@ async function promptNewDirectoryName(currentName) {
|
|
|
101
99
|
}
|
|
102
100
|
return result.trim();
|
|
103
101
|
}
|
|
104
|
-
|
|
105
102
|
//#endregion
|
|
106
103
|
//#region src/prompts/layer.ts
|
|
107
104
|
/**
|
|
@@ -245,7 +242,6 @@ async function promptUpdateHost(hostName) {
|
|
|
245
242
|
}
|
|
246
243
|
return result;
|
|
247
244
|
}
|
|
248
|
-
|
|
249
245
|
//#endregion
|
|
250
246
|
//#region src/modules/registry.ts
|
|
251
247
|
/**
|
|
@@ -385,7 +381,6 @@ function isValidModuleId(id) {
|
|
|
385
381
|
function parseModulesArg(modules) {
|
|
386
382
|
return modules.split(",").map((m) => m.trim().toLowerCase()).filter((m) => m && isValidModuleId(m));
|
|
387
383
|
}
|
|
388
|
-
|
|
389
384
|
//#endregion
|
|
390
385
|
//#region src/modules/resolver.ts
|
|
391
386
|
/**
|
|
@@ -432,7 +427,6 @@ function getModuleDisplayHint(module) {
|
|
|
432
427
|
}
|
|
433
428
|
return module.hint;
|
|
434
429
|
}
|
|
435
|
-
|
|
436
430
|
//#endregion
|
|
437
431
|
//#region src/prompts/module-selection.ts
|
|
438
432
|
/**
|
|
@@ -457,7 +451,6 @@ async function promptModuleSelection() {
|
|
|
457
451
|
}
|
|
458
452
|
return result;
|
|
459
453
|
}
|
|
460
|
-
|
|
461
454
|
//#endregion
|
|
462
455
|
//#region src/utils/registry.ts
|
|
463
456
|
/**
|
|
@@ -543,7 +536,6 @@ function getDefaultTemplateName() {
|
|
|
543
536
|
function getTemplateSource(name) {
|
|
544
537
|
return `github:kimeshjs/starter#${name}`;
|
|
545
538
|
}
|
|
546
|
-
|
|
547
539
|
//#endregion
|
|
548
540
|
//#region src/prompts/template.ts
|
|
549
541
|
/**
|
|
@@ -573,7 +565,6 @@ async function promptTemplateSelection(templates) {
|
|
|
573
565
|
if (!selected) throw new Error(`Template "${result}" not found`);
|
|
574
566
|
return selected;
|
|
575
567
|
}
|
|
576
|
-
|
|
577
568
|
//#endregion
|
|
578
569
|
//#region src/utils/template.ts
|
|
579
570
|
/**
|
|
@@ -702,7 +693,6 @@ async function detectPreferredPackageManager() {
|
|
|
702
693
|
if (userAgent.includes("yarn")) return "yarn";
|
|
703
694
|
return "npm";
|
|
704
695
|
}
|
|
705
|
-
|
|
706
696
|
//#endregion
|
|
707
697
|
//#region src/prompts/package-manager.ts
|
|
708
698
|
const PACKAGE_MANAGER_OPTIONS = [
|
|
@@ -771,7 +761,6 @@ async function promptGitInit() {
|
|
|
771
761
|
if (clack.isCancel(result)) return false;
|
|
772
762
|
return result;
|
|
773
763
|
}
|
|
774
|
-
|
|
775
764
|
//#endregion
|
|
776
765
|
//#region src/utils/module.ts
|
|
777
766
|
/**
|
|
@@ -922,7 +911,6 @@ function getInstallSummary(result) {
|
|
|
922
911
|
if (result.configUpdated) parts.push("config updated");
|
|
923
912
|
return parts.join(", ") || "no changes";
|
|
924
913
|
}
|
|
925
|
-
|
|
926
914
|
//#endregion
|
|
927
915
|
//#region src/utils/monorepo.ts
|
|
928
916
|
/**
|
|
@@ -1040,7 +1028,6 @@ function isInWorkspace(path, monorepo) {
|
|
|
1040
1028
|
}
|
|
1041
1029
|
return false;
|
|
1042
1030
|
}
|
|
1043
|
-
|
|
1044
1031
|
//#endregion
|
|
1045
1032
|
//#region src/utils/host-update.ts
|
|
1046
1033
|
/**
|
|
@@ -1228,7 +1215,6 @@ function canUpdateHost(hostPath) {
|
|
|
1228
1215
|
missingFiles
|
|
1229
1216
|
};
|
|
1230
1217
|
}
|
|
1231
|
-
|
|
1232
1218
|
//#endregion
|
|
1233
1219
|
//#region src/main.ts
|
|
1234
1220
|
const VALID_PACKAGE_MANAGERS = [
|
|
@@ -1311,7 +1297,7 @@ async function runLayerFlow(args) {
|
|
|
1311
1297
|
let layerName;
|
|
1312
1298
|
if (args.dir) {
|
|
1313
1299
|
layerName = args.dir;
|
|
1314
|
-
const nameError = (await import("./layer-
|
|
1300
|
+
const nameError = (await import("./layer-BYUYJ1ln.mjs").then((n) => n.r)).validateLayerName(layerName);
|
|
1315
1301
|
if (nameError) {
|
|
1316
1302
|
clack.log.error(nameError);
|
|
1317
1303
|
clack.outro(pc.red("Operation failed"));
|
|
@@ -1573,6 +1559,5 @@ async function runAppFlow(args) {
|
|
|
1573
1559
|
clack.note(nextSteps.map((step) => pc.cyan(step)).join("\n"), pc.bold("Next steps"));
|
|
1574
1560
|
clack.outro(pc.green("Happy coding! 🚀"));
|
|
1575
1561
|
}
|
|
1576
|
-
|
|
1577
1562
|
//#endregion
|
|
1578
|
-
export { hasUnmetDependencies as A, promptNpmScope as B, fetchTemplate as C, isValidTemplateName as D, getTemplateSource as E, isValidModuleId as F, promptProjectName as G, promptUpdateHost as H, parseModulesArg as I, validateProjectName as K, promptHostAppSelection as L, AVAILABLE_MODULES as M, getModule as N, promptModuleSelection as O, getModuleIds as P, promptLayerDirectory as R, fetchAllTemplates as S, getTemplateNames as T, promptDirectoryConflict as U, promptProjectType as V, promptNewDirectoryName as W, detectPreferredPackageManager as _, findHostApps as a, installDependencies as b, collectPackages as c, installModules as d, installNpmPackages as f, promptPackageManager as g, promptInstallDeps as h, detectMonorepoRoot as i, resolveModules as j, getModuleDisplayHint as k, generateModuleFiles as l, promptGitInit as m, addLayerToHost as n, getRecommendedLayerDir as o, updateKimeshConfig$1 as p, canUpdateHost as r, isInWorkspace as s, main as t, getInstallSummary as u, downloadProjectTemplate as v, getDefaultTemplateName as w, promptTemplateSelection as x, initGitRepo as y, promptLayerName as z };
|
|
1563
|
+
export { hasUnmetDependencies as A, promptNpmScope as B, fetchTemplate as C, isValidTemplateName as D, getTemplateSource as E, isValidModuleId as F, promptProjectName as G, promptUpdateHost as H, parseModulesArg as I, validateProjectName as K, promptHostAppSelection as L, AVAILABLE_MODULES as M, getModule as N, promptModuleSelection as O, getModuleIds as P, promptLayerDirectory as R, fetchAllTemplates as S, getTemplateNames as T, promptDirectoryConflict as U, promptProjectType as V, promptNewDirectoryName as W, detectPreferredPackageManager as _, findHostApps as a, installDependencies as b, collectPackages as c, installModules as d, installNpmPackages as f, promptPackageManager as g, promptInstallDeps as h, detectMonorepoRoot as i, resolveModules as j, getModuleDisplayHint as k, generateModuleFiles as l, promptGitInit as m, addLayerToHost as n, getRecommendedLayerDir as o, updateKimeshConfig$1 as p, canUpdateHost as r, isInWorkspace as s, main as t, getInstallSummary as u, downloadProjectTemplate as v, getDefaultTemplateName as w, promptTemplateSelection as x, initGitRepo as y, promptLayerName as z };
|
package/dist/main.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { t as main } from "./main
|
|
2
|
-
|
|
3
|
-
export { main };
|
|
1
|
+
import { t as main } from "./main--7fyoTg4.mjs";
|
|
2
|
+
export { main };
|
package/dist/run.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-kimesh",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.46",
|
|
4
4
|
"description": "Create a new Kimesh project",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^25.3.0",
|
|
43
|
-
"tsdown": "^0.
|
|
43
|
+
"tsdown": "^0.21.2",
|
|
44
44
|
"typescript": "^5.9.3"
|
|
45
45
|
}
|
|
46
46
|
}
|