Title: `references` are not inherited in `tsconfig.json` · Issue #27098 · microsoft/TypeScript · GitHub
Open Graph Title: `references` are not inherited in `tsconfig.json` · Issue #27098 · microsoft/TypeScript
X Title: `references` are not inherited in `tsconfig.json` · Issue #27098 · microsoft/TypeScript
Description: TypeScript Version: 3.1.0-dev.20180914 Search Terms: tsconfig.json extends references inheritance It seems that the references key is not inherited via the extends mechanism, which surprised me because the handbook doesn't mention anythi...
Open Graph Description: TypeScript Version: 3.1.0-dev.20180914 Search Terms: tsconfig.json extends references inheritance It seems that the references key is not inherited via the extends mechanism, which surprised me bec...
X Description: TypeScript Version: 3.1.0-dev.20180914 Search Terms: tsconfig.json extends references inheritance It seems that the references key is not inherited via the extends mechanism, which surprised me bec...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/27098
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`references` are not inherited in `tsconfig.json`","articleBody":"**TypeScript Version:** 3.1.0-dev.20180914\r\n\r\n**Search Terms:** tsconfig.json extends references inheritance\r\n\r\nIt seems that the `references` key is not inherited via the `extends` mechanism, which surprised me because the handbook [doesn't mention](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#configuration-inheritance-with-extends) anything special about it.\r\n\r\nDemo:\r\n\r\n`tsconfig.base.json`:\r\n\r\n```json\r\n{\r\n \"references\": [\r\n { \"path\": \"./some/other/project\" }\r\n ],\r\n \"compilerOptions\": {\r\n \"declaration\": true,\r\n \"composite\": true\r\n }\r\n}\r\n```\r\n\r\n`tsconfig.doesnt-work.json`:\r\n\r\n```json\r\n{\r\n \"extends\": \"./tsconfig.base.json\"\r\n}\r\n```\r\n\r\nBuilding `tsconfig.doesnt-work.json` doesn't build the reference:\r\n\r\n```\r\n$ tsc -b -f -d tsconfig.doesnt-work.json\r\n[11:12:13] A non-dry build would build project 'C:/demo/tsconfig.doesnt-work.json'\r\n```\r\n\r\n`tsconfig.works-but-duplicates-references.json`:\r\n\r\n```json\r\n{\r\n \"extends\": \"./tsconfig.base.json\",\r\n \"references\": [\r\n { \"path\": \"./some/other/project\" }\r\n ],\r\n}\r\n```\r\n\r\nThis is a correct build but I had to duplicate the `references` key:\r\n\r\n```\r\n$ tsc -b -f -d tsconfig.works-but-duplicates-references.json\r\n[11:12:13] A non-dry build would build project 'C:/demo/tsconfig.works-but-duplicates-references.json'\r\n[11:12:13] A non-dry build would build project 'C:/demo/some/other/project/tsconfig.json'\r\n```","author":{"url":"https://github.com/borekb","@type":"Person","name":"borekb"},"datePublished":"2018-09-14T18:24:18Z","url":"https://github.com/microsoft/TypeScript/issues/27098"}
| 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:b9f5a8cb-c27c-8cc2-6861-42bd8e4422b1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 924C:16AB79:29556A2:348F8ED:6B01A4C7 |
| html-safe-nonce | 6027bd577a5e0d66487ce46063b1b2ef222b21f7ba9e8dccfbc38448d424fb73 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjRDOjE2QUI3OToyOTU1NkEyOjM0OEY4RUQ6NkIwMUE0QzciLCJ2aXNpdG9yX2lkIjoiNzk3NTk4NzU0NzMyMDk4NDc3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cb7e8677f25927ba621d3c4dff31b1bc5ff25f3d83acbd53e7b80d76415abb6d |
| hovercard-subject-tag | issue:360407529 |
| 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/27098/issue_layout |
| twitter:image | https://opengraph.githubassets.com/51c6f892ccf4ae6a61e02676895036870f46e64823efb2024f263ebb642aa395/microsoft/TypeScript/issues/27098 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/51c6f892ccf4ae6a61e02676895036870f46e64823efb2024f263ebb642aa395/microsoft/TypeScript/issues/27098 |
| og:image:alt | TypeScript Version: 3.1.0-dev.20180914 Search Terms: tsconfig.json extends references inheritance It seems that the references key is not inherited via the extends mechanism, which surprised me bec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | borekb |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width