Title: Improve development support: tsconfig files/exclude · Issue #7400 · microsoft/TypeScript · GitHub
Open Graph Title: Improve development support: tsconfig files/exclude · Issue #7400 · microsoft/TypeScript
X Title: Improve development support: tsconfig files/exclude · Issue #7400 · microsoft/TypeScript
Description: Currently tsconfig.json is used both by tsc and typescript language service for IDE support. The tsconfig.json need by tsc and typescript language service could be different: For tsc, files: [] works just fine and actually have better co...
Open Graph Description: Currently tsconfig.json is used both by tsc and typescript language service for IDE support. The tsconfig.json need by tsc and typescript language service could be different: For tsc, files: [] wor...
X Description: Currently tsconfig.json is used both by tsc and typescript language service for IDE support. The tsconfig.json need by tsc and typescript language service could be different: For tsc, files: [] wor...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve development support: tsconfig files/exclude","articleBody":"Currently `tsconfig.json` is used both by `tsc` and `typescript language service` for IDE support.\n\nThe `tsconfig.json` need by `tsc` and `typescript language service` could be different:\n- For `tsc`, `files: []` works just fine and actually have better control on what should be published\n- For `typescript language service`, `exclude: []` works much better because when adding new file, you either need to:\n - Add the file to `files: []`\n - Reference by another file that can be resolved from `files: []`\n\nAlso, when package author write tests also in TypeScript, he may not want to have the tests be compiled and published along with source code.\n\nI couldn't find a way to achieve this.\n\nThere are a few possible solutions:\na. add `devExclude/devFiles` in `tsconfig.json`. `typescript language service` will use this list if available.\nb. Allow `typescript language service` to be configurable to use another config file, e.g. `tsconfig.dev.json`\nc. Allow `tsc` to be configurable that **by default** use another config file, e.g. `tsconfig.build.json`\n\nI'm aware that I can do `tsc -p \u003cdirectory>`, but that wouldn't solve case where `.ts` and `.spec.ts` live in the same folder. Also, that's extra typing. The best case is to run `tsc` at project root and everything will just work.\n\nIs there a `.typescriptrc` file available to add these options?\n","author":{"url":"https://github.com/unional","@type":"Person","name":"unional"},"datePublished":"2016-03-05T09:14:15Z","url":"https://github.com/microsoft/TypeScript/issues/7400"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6b7f4b5c-12f5-9295-ec60-7b168d572f60 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A856:2463BD:B6B5E0:ECDB52:6B00EA2B |
| html-safe-nonce | f0684f74422b624839a55f08b0f48568c9a18a687d86d2b9d5c0a3e01f8243aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODU2OjI0NjNCRDpCNkI1RTA6RUNEQjUyOjZCMDBFQTJCIiwidmlzaXRvcl9pZCI6IjY4OTA4ODExNjY4NDEyNzY5NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1ec99452f1543a08bd449ba33fd47e5fad6225513945d1250b8f989cf9575bcd |
| hovercard-subject-tag | issue:138663203 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/7400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c3c9ee031ae5b581729e98c2aaa7d1179c1af3a6496fdcc353b57f2d9529641/microsoft/TypeScript/issues/7400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c3c9ee031ae5b581729e98c2aaa7d1179c1af3a6496fdcc353b57f2d9529641/microsoft/TypeScript/issues/7400 |
| og:image:alt | Currently tsconfig.json is used both by tsc and typescript language service for IDE support. The tsconfig.json need by tsc and typescript language service could be different: For tsc, files: [] wor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | unional |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width