@getcoherent/cli 0.6.40 → 0.6.41
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 +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8638,7 +8638,8 @@ async function fixCommand(opts = {}) {
|
|
|
8638
8638
|
const sidebarConfigName = dsm?.getConfig().name ?? "";
|
|
8639
8639
|
const hasWrongName = existingSidebarCode.includes("My App") && sidebarConfigName !== "My App";
|
|
8640
8640
|
const hasTrigger = existingSidebarCode.includes("SidebarTrigger");
|
|
8641
|
-
|
|
8641
|
+
const isBroken = !isValidTsx(existingSidebarCode, projectRoot);
|
|
8642
|
+
if (hasWrongName || hasTrigger || isBroken) {
|
|
8642
8643
|
if (!dsm) {
|
|
8643
8644
|
dsm = new DesignSystemManager9(project.configPath);
|
|
8644
8645
|
await dsm.load();
|
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.41",
|
|
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.41"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^20.11.0",
|