Title: support globs in tsconfig.json files property (or just file/directory exclusions) · Issue #1927 · microsoft/TypeScript · GitHub
Open Graph Title: support globs in tsconfig.json files property (or just file/directory exclusions) · Issue #1927 · microsoft/TypeScript
X Title: support globs in tsconfig.json files property (or just file/directory exclusions) · Issue #1927 · microsoft/TypeScript
Description: An extension to #1692 Our ts project uses a grunt-based build system, with bower dependencies for the application and node_modules for build-tools. We will need the ability to exclude node_modules and bower_components from the build by d...
Open Graph Description: An extension to #1692 Our ts project uses a grunt-based build system, with bower dependencies for the application and node_modules for build-tools. We will need the ability to exclude node_modules ...
X Description: An extension to #1692 Our ts project uses a grunt-based build system, with bower dependencies for the application and node_modules for build-tools. We will need the ability to exclude node_modules ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/1927
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"support globs in tsconfig.json files property (or just file/directory exclusions)","articleBody":"An extension to https://github.com/Microsoft/TypeScript/pull/1692\n\nOur ts project uses a grunt-based build system, with bower dependencies for the application and node_modules for build-tools. We will need the ability to exclude node_modules and bower_components from the build by default (unless files are referenced via /// \u003creference path=\"...\" />).\n\nThis causes an issue: we have end-to-end tests running in protractor, as well as unit tests running in jasmine, and unless we have the ability to exclude node_modules and bower_components, both will be parsed and we'll get duplicate definition errors.\n\nIn Visual Studio today, this is why we need to exclude both bower_components and node_modules from the project, because visual studio automatically parses all files in the project with no way to exclude them except to keep them out of the project altogether.\n\nA number of third party tools have started to support tsconfig.json, and one thing I've noticed is that most of them support some sort of extension to tsconfig.json that supports file globs. I propose we just add support into the spec for file globs. For the version of typescript on npm, we can just depend on the appropriate file glob libraries in the npm ecosystem. For the Visual Studio embedded version of TypeScript, just embed the glob libraries that are needed statically in the installation.\n\nAs a fallback, if the notion of including a third party glob library is a non-starter, then the following fallback supporting a subset of the glob patterns would solve our problem at least partially.\n\nFallback:\nSupport both file and directory inclusions and exclusions in the files property:\n\n```\nfiles: [\n 'app/', (equivalent to 'app/**/*.ts')\n '!e2e/', (equivalent to '!e2e/**/*.ts')\n '!node_modules/',\n '!app/bower_components/',\n '!app/vendor/fooLib/fooLib.ts'\n]\n```\n","author":{"url":"https://github.com/JeroMiya","@type":"Person","name":"JeroMiya"},"datePublished":"2015-02-04T18:00:19Z","url":"https://github.com/microsoft/TypeScript/issues/1927"}
| 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:1a7c1229-a908-662e-cdcc-b98d3826e410 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFE0:21E3E7:EAEFDF:1367AE3:6B0101D8 |
| html-safe-nonce | ca7d5ad8b89d5af069ef068b8f6f69ecdec3036fd31dc5bc133570c9f78c5b75 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkUwOjIxRTNFNzpFQUVGREY6MTM2N0FFMzo2QjAxMDFEOCIsInZpc2l0b3JfaWQiOiIxNjg0NTUyNTA1NzM4NTMxNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2101a69a49197cd87983afec834d6f2d49b48cdee57dd253ad570facea5f3d01 |
| hovercard-subject-tag | issue:56563651 |
| 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/1927/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b7cf0a30ecd5e8c7f26063ba17529e6c43c19090deed42fcd325b00a03c33587/microsoft/TypeScript/issues/1927 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b7cf0a30ecd5e8c7f26063ba17529e6c43c19090deed42fcd325b00a03c33587/microsoft/TypeScript/issues/1927 |
| og:image:alt | An extension to #1692 Our ts project uses a grunt-based build system, with bower dependencies for the application and node_modules for build-tools. We will need the ability to exclude node_modules ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JeroMiya |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width