Skip to content

Commit 6801a31

Browse files
authored
chore(tsconfig): explicit sourceMap and declarationMap: false (#1213)
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 34d6745 commit 6801a31

9 files changed

Lines changed: 30 additions & 11 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.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"resolveJsonModule": true,
2929
"rewriteRelativeImportExtensions": true,
3030
"skipLibCheck": true,
31-
"sourceMap": true,
31+
"sourceMap": false,
3232
"strict": true,
3333
"strictNullChecks": true,
3434
"target": "ES2024",

.config/tsconfig.build.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
4-
"declaration": true,
5-
"declarationMap": true,
64
"composite": true,
7-
"incremental": true
5+
"declaration": true,
6+
"declarationMap": false,
7+
"incremental": true,
8+
"sourceMap": false
89
}
910
}

.config/tsconfig.check.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
4+
"declarationMap": false,
5+
"sourceMap": false,
46
"typeRoots": ["../node_modules/@types"]
57
},
68
"include": [
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.test.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
4+
"declarationMap": false,
45
"noUnusedLocals": false,
5-
"noUnusedParameters": false
6+
"noUnusedParameters": false,
7+
"sourceMap": false
68
}
79
}

packages/cli/.config/tsconfig.check.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
4+
"declarationMap": false,
5+
"sourceMap": false,
46
"typeRoots": ["../node_modules/@types"]
57
},
68
"include": ["../src/**/*.mts", "../*.config.mts", "./*.mts"],

packages/cli/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"extends": "../../.config/tsconfig.base.json",
3+
"compilerOptions": {
4+
"declarationMap": false,
5+
"sourceMap": false
6+
},
37
"include": [
48
"src/**/*.mts",
59
"src/**/*.d.ts",

tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"extends": "./.config/tsconfig.base.json",
3+
"compilerOptions": {
4+
"declarationMap": false,
5+
"sourceMap": false
6+
},
37
"include": ["src/**/*.mts", "src/**/*.d.ts"],
48
"exclude": [
59
"src/**/*.test.mts",

0 commit comments

Comments
 (0)