Skip to content

Commit

Permalink
Enable declaration maps (#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer authored Feb 26, 2024
1 parent 21f4f0a commit 23c209f
Show file tree
Hide file tree
Showing 75 changed files with 80 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .tsconfigrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ const defaultCompilerOptions = {
/** @type CompilerOptions */
const compileCompilerOptions = CompilerOptions.assign(defaultCompilerOptions, {
sourceMap: true,
declarationMap: true,
noUnusedLocals: true,
noUnusedParameters: true,
target: 'es2020',
Expand All @@ -381,6 +382,7 @@ const compileProjectOptions = {
/** @type CompilerOptions */
const watchCompilerOptions = CompilerOptions.assign(defaultCompilerOptions, {
sourceMap: true,
declarationMap: true,
noUnusedLocals: false,
noUnusedParameters: false,
assumeChangesOnlyAffectDirectDependencies: true,
Expand All @@ -399,6 +401,7 @@ const watchProjectOptions = {
/** @type CompilerOptions */
const publishCompilerOptions = CompilerOptions.assign(defaultCompilerOptions, {
sourceMap: false,
declarationMap: false,
noUnusedLocals: true,
noUnusedParameters: true,
target: 'es2020',
Expand All @@ -417,6 +420,7 @@ const publishProjectOptions = {
/** @type CompilerOptions */
const umdCompilerOptions = CompilerOptions.assign(defaultCompilerOptions, {
sourceMap: true,
declarationMap: true,
noUnusedLocals: true,
noUnusedParameters: true,
target: 'es5',
Expand Down Expand Up @@ -449,7 +453,8 @@ const umdWatchProjectOptions = {

/** @type CompilerOptions */
const umdPublishCompilerOptions = CompilerOptions.assign(umdCompilerOptions, {
sourceMap: false
sourceMap: false,
declarationMap: false
});

/** @type ProjectOptions */
Expand Down
1 change: 1 addition & 0 deletions client-node-tests/src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions client-node-tests/src/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions client-node-tests/src/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions client/src/browser/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions client/src/browser/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions client/src/browser/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions client/src/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions client/src/common/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions client/src/common/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions client/src/node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions client/src/node/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions client/src/node/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/browser/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/browser/test/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/browser/test/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/browser/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/browser/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/browser/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/common/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/common/test/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/common/test/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/common/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/common/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/node/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/node/test/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/node/test/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/node/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions jsonrpc/src/node/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions protocol/src/browser/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions protocol/src/browser/test/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions protocol/src/browser/test/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions protocol/src/browser/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions protocol/src/browser/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions protocol/src/browser/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions protocol/src/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions protocol/src/common/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions protocol/src/common/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions protocol/src/node/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions protocol/src/node/test/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions protocol/src/node/test/tsconfig.watch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"assumeChangesOnlyAffectDirectDependencies": true,
Expand Down
1 change: 1 addition & 0 deletions protocol/src/node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": true,
"declarationMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
1 change: 1 addition & 0 deletions protocol/src/node/tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"stripInternal": true,
"sourceMap": false,
"declarationMap": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"target": "es2020",
Expand Down
Loading

0 comments on commit 23c209f

Please sign in to comment.