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.
Files changed (3) hide show
  1. package/cli.ts +6 -13
  2. package/dist/cli.js +7 -13
  3. 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 updated = raw.replace(/(\n)(\s*\})(\s*)$/, '$1 "exclude": ["plugins/**"]\n$2$3');
350
- // If that didn't match (unusual formatting), try simpler approach
351
- if (updated === raw) {
352
- const lastBrace = raw.lastIndexOf("}");
353
- if (lastBrace !== -1) {
354
- const before = raw.slice(0, lastBrace).trimEnd();
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 updated = raw.replace(/(\n)(\s*\})(\s*)$/, '$1 "exclude": ["plugins/**"]\n$2$3');
2524
- if (updated === raw) {
2525
- const lastBrace = raw.lastIndexOf("}");
2526
- if (lastBrace !== -1) {
2527
- const before = raw.slice(0, lastBrace).trimEnd();
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
- fs7.writeFileSync(tsconfigPath2, patched);
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)');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typegraph-mcp",
3
- "version": "0.9.16",
3
+ "version": "0.9.18",
4
4
  "description": "Type-aware codebase navigation for AI coding agents — 14 MCP tools powered by tsserver + oxc",
5
5
  "license": "MIT",
6
6
  "type": "module",