Title: Incorrect place of tsbuildinfo file when rootDir option is specified · Issue #30925 · microsoft/TypeScript · GitHub
Open Graph Title: Incorrect place of tsbuildinfo file when rootDir option is specified · Issue #30925 · microsoft/TypeScript
X Title: Incorrect place of tsbuildinfo file when rootDir option is specified · Issue #30925 · microsoft/TypeScript
Description: TypeScript Version: 3.5.0-dev.20190413, 3.4.3 Search Terms: tsbuildinfo, incremental build, rootDir Code For reproduce test project https://github.com/ikokostya/ts-bugs can be used: git clone https://github.com/ikokostya/ts-bugs cd ts-bu...
Open Graph Description: TypeScript Version: 3.5.0-dev.20190413, 3.4.3 Search Terms: tsbuildinfo, incremental build, rootDir Code For reproduce test project https://github.com/ikokostya/ts-bugs can be used: git clone https...
X Description: TypeScript Version: 3.5.0-dev.20190413, 3.4.3 Search Terms: tsbuildinfo, incremental build, rootDir Code For reproduce test project https://github.com/ikokostya/ts-bugs can be used: git clone https...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/30925
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect place of tsbuildinfo file when rootDir option is specified","articleBody":"\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** `3.5.0-dev.20190413`, `3.4.3`\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\n\r\ntsbuildinfo, incremental build, rootDir\r\n\r\n**Code**\r\n\r\nFor reproduce test project https://github.com/ikokostya/ts-bugs can be used:\r\n\r\n```\r\ngit clone https://github.com/ikokostya/ts-bugs\r\ncd ts-bugs\r\nnpm install\r\nnpx tsc\r\n```\r\n\r\nThe test project has the following file structure:\r\n\r\n```\r\nsrc/\r\n lib/\r\n foo.ts\r\n tests/\r\n foo.test.ts\r\ntsconfig.json\r\n```\r\n\r\n`tsconfig.json` content:\r\n\r\n```json\r\n{\r\n \"compilerOptions\": {\r\n \"module\": \"commonjs\",\r\n \"moduleResolution\": \"node\",\r\n \"target\": \"es2017\",\r\n \"lib\": [\"es2017\"],\r\n \"strict\": true,\r\n \"noEmitOnError\": true,\r\n \"sourceMap\": true,\r\n \"rootDir\": \"src\",\r\n \"incremental\": true,\r\n \"outDir\": \"out\"\r\n },\r\n \"include\": [\r\n \"src/**/*\"\r\n ]\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nAfter compilation `tsbuildinfo` file will be placed in `out` directory, i.e. `./out/tsconfig.tsbuildinfo`.\r\n\r\n**Actual behavior:**\r\n\r\n`tsbuildinfo` file is placed in project root directory, i.e. `./tsconfig.tsbuildinfo`.\r\n\r\n**Playground Link:** \u003c!-- A link to a TypeScript Playground \"Share\" link which demonstrates this behavior -->\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? -->\r\nhttps://github.com/Microsoft/TypeScript/pull/29161\r\nhttps://github.com/Microsoft/TypeScript/issues/30457\r\n","author":{"url":"https://github.com/ikokostya","@type":"Person","name":"ikokostya"},"datePublished":"2019-04-14T20:09:36Z","url":"https://github.com/microsoft/TypeScript/issues/30925"}
| 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:8ae7e765-3a33-3f66-8679-b979c85508a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8284:2E124E:265BA10:30F63AC:6B019C0F |
| html-safe-nonce | d0ca63b71dc6268c93798c4a23575fede817e59fbd20107344a5ec62a09bb119 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Mjg0OjJFMTI0RToyNjVCQTEwOjMwRjYzQUM6NkIwMTlDMEYiLCJ2aXNpdG9yX2lkIjoiMTYzNTUxNzY4MTE4Njc0MTI2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 85de33216db7cc26d12641079a13cae3da5d6a33fa44fee0b7f0e223f8d1f3f1 |
| hovercard-subject-tag | issue:433027768 |
| 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/30925/issue_layout |
| twitter:image | https://opengraph.githubassets.com/209a75dc9620e3015677539a2cccfc5f118982687389d5196e532f775f24d2de/microsoft/TypeScript/issues/30925 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/209a75dc9620e3015677539a2cccfc5f118982687389d5196e532f775f24d2de/microsoft/TypeScript/issues/30925 |
| og:image:alt | TypeScript Version: 3.5.0-dev.20190413, 3.4.3 Search Terms: tsbuildinfo, incremental build, rootDir Code For reproduce test project https://github.com/ikokostya/ts-bugs can be used: git clone https... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ikokostya |
| 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