typegraph-mcp 0.9.16 → 0.9.18
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/cli.ts +6 -13
- package/dist/cli.js +7 -13
- package/package.json +1 -1
package/cli.ts
CHANGED
|
@@ -111,7 +111,6 @@ const CORE_FILES = [
|
|
|
111
111
|
"smoke-test.ts",
|
|
112
112
|
"cli.ts",
|
|
113
113
|
"package.json",
|
|
114
|
-
"package-lock.json",
|
|
115
114
|
];
|
|
116
115
|
|
|
117
116
|
/** Skill files inside plugin dir (Claude Code + Cursor discover from skills/) */
|
|
@@ -346,18 +345,12 @@ function ensureTsconfigExclude(projectRoot: string): void {
|
|
|
346
345
|
fs.writeFileSync(tsconfigPath, updated);
|
|
347
346
|
} else {
|
|
348
347
|
// No exclude field — add one before the closing brace
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
const needsComma = !before.endsWith(",") && !before.endsWith("{");
|
|
356
|
-
const patched = `${before}${needsComma ? "," : ""}\n "exclude": ["plugins/**"]\n}\n`;
|
|
357
|
-
fs.writeFileSync(tsconfigPath, patched);
|
|
358
|
-
}
|
|
359
|
-
} else {
|
|
360
|
-
fs.writeFileSync(tsconfigPath, updated);
|
|
348
|
+
const lastBrace = raw.lastIndexOf("}");
|
|
349
|
+
if (lastBrace !== -1) {
|
|
350
|
+
const before = raw.slice(0, lastBrace).trimEnd();
|
|
351
|
+
const needsComma = !before.endsWith(",") && !before.endsWith("{");
|
|
352
|
+
const patched = `${before}${needsComma ? "," : ""}\n "exclude": ["plugins/**"]\n}\n`;
|
|
353
|
+
fs.writeFileSync(tsconfigPath, patched);
|
|
361
354
|
}
|
|
362
355
|
}
|
|
363
356
|
|
package/dist/cli.js
CHANGED
|
@@ -2340,8 +2340,7 @@ var CORE_FILES = [
|
|
|
2340
2340
|
"check.ts",
|
|
2341
2341
|
"smoke-test.ts",
|
|
2342
2342
|
"cli.ts",
|
|
2343
|
-
"package.json"
|
|
2344
|
-
"package-lock.json"
|
|
2343
|
+
"package.json"
|
|
2345
2344
|
];
|
|
2346
2345
|
var SKILL_FILES = [
|
|
2347
2346
|
"skills/tool-selection/SKILL.md",
|
|
@@ -2520,20 +2519,15 @@ function ensureTsconfigExclude(projectRoot2) {
|
|
|
2520
2519
|
);
|
|
2521
2520
|
fs7.writeFileSync(tsconfigPath2, updated);
|
|
2522
2521
|
} else {
|
|
2523
|
-
const
|
|
2524
|
-
if (
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
const needsComma = !before.endsWith(",") && !before.endsWith("{");
|
|
2529
|
-
const patched = `${before}${needsComma ? "," : ""}
|
|
2522
|
+
const lastBrace = raw.lastIndexOf("}");
|
|
2523
|
+
if (lastBrace !== -1) {
|
|
2524
|
+
const before = raw.slice(0, lastBrace).trimEnd();
|
|
2525
|
+
const needsComma = !before.endsWith(",") && !before.endsWith("{");
|
|
2526
|
+
const patched = `${before}${needsComma ? "," : ""}
|
|
2530
2527
|
"exclude": ["plugins/**"]
|
|
2531
2528
|
}
|
|
2532
2529
|
`;
|
|
2533
|
-
|
|
2534
|
-
}
|
|
2535
|
-
} else {
|
|
2536
|
-
fs7.writeFileSync(tsconfigPath2, updated);
|
|
2530
|
+
fs7.writeFileSync(tsconfigPath2, patched);
|
|
2537
2531
|
}
|
|
2538
2532
|
}
|
|
2539
2533
|
p.log.success('Added "plugins/**" to tsconfig.json exclude (prevents build errors)');
|