Skip to content

Commit

Permalink
Merge pull request #6039 from marmelab/declarationMap
Browse files Browse the repository at this point in the history
Fix Go to definition goes to the compiled code in VSCode
  • Loading branch information
djhi authored Mar 15, 2021
2 parents 5d8ae19 + 6f245ef commit 2312aec
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/ra-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"allowJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
Expand Down
1 change: 1 addition & 0 deletions packages/ra-data-fakerest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"allowJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
Expand Down
1 change: 1 addition & 0 deletions packages/ra-data-json-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"allowJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
Expand Down
1 change: 1 addition & 0 deletions packages/ra-data-localstorage/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"allowJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
Expand Down
1 change: 1 addition & 0 deletions packages/ra-data-simple-rest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"allowJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
Expand Down
1 change: 1 addition & 0 deletions packages/ra-i18n-polyglot/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"allowJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
Expand Down
1 change: 1 addition & 0 deletions packages/ra-language-english/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"allowJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
Expand Down
1 change: 1 addition & 0 deletions packages/ra-language-french/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"allowJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
Expand Down
1 change: 1 addition & 0 deletions packages/ra-test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"allowJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
Expand Down
3 changes: 2 additions & 1 deletion packages/ra-ui-materialui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"outDir": "lib",
"rootDir": "src",
"declaration": true
"declaration": true,
"declarationMap": true
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
Expand Down
1 change: 1 addition & 0 deletions packages/react-admin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "lib",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"allowJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
Expand Down

0 comments on commit 2312aec

Please sign in to comment.