From e56127445f7567a04f1d446c0a3bc246551279f9 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov Date: Thu, 23 Apr 2026 19:41:37 +0200 Subject: [PATCH] build: add dev source maps --- package.json | 3 ++- tests/index.test.ts | 1 + tsconfig.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e92fca09a..976a93d0f 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 a1c7765bb..0ea865da9 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 11701f18e..d1dd1a16e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,7 @@ "noImplicitOverride": true, "noFallthroughCasesInSwitch": true, "incremental": true, + "sourceMap": true, "allowJs": true, "useUnknownInCatchVariables": false },