Skip to content

Commit 136da6a

Browse files
build: add dev source maps (#1948)
This allows setting up a debugger script with either enabled debugging port or tools like VS Code or Antigravity.
1 parent dbddb2e commit 136da6a

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"files": [
3737
"build/src",
3838
"LICENSE",
39-
"!*.tsbuildinfo"
39+
"!*.tsbuildinfo",
40+
"!*.js.map"
4041
],
4142
"repository": "ChromeDevTools/chrome-devtools-mcp",
4243
"author": "Google LLC",

tests/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ async function getToolsWithFilteredCategories(
169169
const definedNames = [];
170170
for (const file of files) {
171171
if (
172+
!file.endsWith('.js') ||
172173
file === 'ToolDefinition.js' ||
173174
file === 'tools.js' ||
174175
file === 'slim'

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"noImplicitOverride": true,
2020
"noFallthroughCasesInSwitch": true,
2121
"incremental": true,
22+
"sourceMap": true,
2223
"allowJs": true,
2324
"useUnknownInCatchVariables": false
2425
},

0 commit comments

Comments
 (0)