Skip to content

Chrome DevTools for coding agents

build: add dev source maps (#1948)

Nikolay Vitkov136da6a35032
diff --git a/package.json b/package.json
index e92fca09..976a93d0 100644
--- a/package.json
+++ b/package.json
@@ -36,7 +36,8 @@
"files": [
"build/src",
"LICENSE",
- "!*.tsbuildinfo"
+ "!*.tsbuildinfo",
+ "!*.js.map"
],
"repository": "ChromeDevTools/chrome-devtools-mcp",
"author": "Google LLC",
diff --git a/tests/index.test.ts b/tests/index.test.ts
index a1c7765b..0ea865da 100644
--- a/tests/index.test.ts
+++ b/tests/index.test.ts
@@ -169,6 +169,7 @@ async function getToolsWithFilteredCategories(
const definedNames = [];
for (const file of files) {
if (
+ !file.endsWith('.js') ||
file === 'ToolDefinition.js' ||
file === 'tools.js' ||
file === 'slim'
diff --git a/tsconfig.json b/tsconfig.json
index 11701f18..d1dd1a16 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -19,6 +19,7 @@
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
"incremental": true,
+ "sourceMap": true,
"allowJs": true,
"useUnknownInCatchVariables": false
},