@getcoherent/cli 0.6.24 → 0.6.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/{chunk-IYLHC4RC.js → chunk-CC3ARMGS.js} +240 -6
- package/dist/{chunk-2ZL4X4QD.js → chunk-H644LLXJ.js} +30 -0
- package/dist/index.js +416 -620
- package/dist/{plan-generator-BHDEJGMY.js → plan-generator-WPYWUA7U.js} +2 -1
- package/dist/{quality-validator-G5AE4337.js → quality-validator-VDQXXDAV.js} +1 -1
- package/dist/{reuse-validator-HC4LZEKF.js → reuse-validator-XR2ZEYC4.js} +2 -1
- package/package.json +2 -2
|
@@ -11,8 +11,9 @@ import {
|
|
|
11
11
|
routeToKey,
|
|
12
12
|
savePlan,
|
|
13
13
|
updateArchitecturePlan
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CC3ARMGS.js";
|
|
15
15
|
import "./chunk-5AHG4NNX.js";
|
|
16
|
+
import "./chunk-H644LLXJ.js";
|
|
16
17
|
import "./chunk-3RG5ZIWI.js";
|
|
17
18
|
export {
|
|
18
19
|
ArchitecturePlanSchema,
|
|
@@ -6,11 +6,12 @@ var RELEVANT_TYPES = {
|
|
|
6
6
|
auth: /* @__PURE__ */ new Set(["form", "feedback"]),
|
|
7
7
|
marketing: /* @__PURE__ */ new Set(["section", "layout"])
|
|
8
8
|
};
|
|
9
|
-
function validateReuse(manifest, generatedCode, pageType, newComponents) {
|
|
9
|
+
function validateReuse(manifest, generatedCode, pageType, newComponents, plannedComponentNames) {
|
|
10
10
|
const warnings = [];
|
|
11
11
|
const relevantTypes = RELEVANT_TYPES[pageType] || RELEVANT_TYPES.app;
|
|
12
12
|
for (const comp of manifest.shared) {
|
|
13
13
|
if (!relevantTypes.has(comp.type)) continue;
|
|
14
|
+
if (plannedComponentNames && !plannedComponentNames.has(comp.name)) continue;
|
|
14
15
|
const isImported = generatedCode.includes(`from '@/components/shared/`) && (generatedCode.includes(`{ ${comp.name} }`) || generatedCode.includes(`{ ${comp.name},`));
|
|
15
16
|
if (!isImported) {
|
|
16
17
|
warnings.push({
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.6.
|
|
6
|
+
"version": "0.6.26",
|
|
7
7
|
"description": "CLI interface for Coherent Design Method",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"ora": "^7.0.1",
|
|
44
44
|
"prompts": "^2.4.2",
|
|
45
45
|
"zod": "^3.22.4",
|
|
46
|
-
"@getcoherent/core": "0.6.
|
|
46
|
+
"@getcoherent/core": "0.6.26"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^20.11.0",
|