Skip to content

Commit 7797383

Browse files
authored
chore(tsconfig): explicit sourceMap and declarationMap: false (#593)
Set sourceMap: false and declarationMap: false explicitly on every tsconfig.json in the repo. Keys are fully alphanumerically sorted within each compilerOptions block. We never want to ship sourcemaps or declaration maps — making the flags explicit prevents accidental regression when someone edits a config and forgets to check inheritance.
1 parent 5782add commit 7797383

5 files changed

Lines changed: 19 additions & 10 deletions

File tree

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"compilerOptions": {
3-
"noEmit": true,
4-
"target": "esnext",
3+
"declarationMap": false,
4+
"erasableSyntaxOnly": true,
55
"module": "nodenext",
66
"moduleResolution": "nodenext",
7+
"noEmit": true,
78
"rewriteRelativeImportExtensions": true,
8-
"erasableSyntaxOnly": true,
9-
"verbatimModuleSyntax": true,
9+
"skipLibCheck": true,
10+
"sourceMap": false,
1011
"strict": true,
11-
"skipLibCheck": true
12+
"target": "esnext",
13+
"verbatimModuleSyntax": true
1214
}
1315
}

.config/tsconfig.check.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
4+
"declarationMap": false,
45
"module": "esnext",
56
"moduleResolution": "bundler",
67
"noEmit": true,
78
"skipLibCheck": true,
9+
"sourceMap": false,
810
"types": ["vitest/globals", "node"],
911
"verbatimModuleSyntax": false
1012
},

.config/tsconfig.check.local.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"extends": "./tsconfig.check.json",
33
"compilerOptions": {
4+
"declarationMap": false,
45
"paths": {
56
"@socketsecurity/lib": ["../../socket-lib/dist/index.d.ts"],
67
"@socketsecurity/lib/*": ["../../socket-lib/dist/*"],
78
"@socketsecurity/registry": [
89
"../../socket-registry/registry/dist/index.d.ts"
910
],
1011
"@socketsecurity/registry/*": ["../../socket-registry/registry/dist/*"]
11-
}
12+
},
13+
"sourceMap": false
1214
}
1315
}

.config/tsconfig.dts.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"emitDeclarationOnly": true,
77
"module": "esnext",
88
"moduleResolution": "bundler",
9+
"noPropertyAccessFromIndexSignature": false,
910
"outDir": "../dist",
1011
"rootDir": "../src",
11-
"noPropertyAccessFromIndexSignature": false,
12-
"skipLibCheck": true
12+
"skipLibCheck": true,
13+
"sourceMap": false
1314
},
1415
"include": ["../src/**/*.ts", "../types/**/*.ts"]
1516
}

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"extends": "./.config/tsconfig.base.json",
33
"compilerOptions": {
4+
"declarationMap": false,
45
"module": "esnext",
56
"moduleResolution": "bundler",
7+
"noEmit": true,
8+
"noPropertyAccessFromIndexSignature": false,
69
"outDir": "./dist",
710
"rootDir": "./src",
8-
"noPropertyAccessFromIndexSignature": false,
9-
"noEmit": true
11+
"sourceMap": false
1012
},
1113
"include": ["src/**/*.ts"]
1214
}

0 commit comments

Comments
 (0)