Title: error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. · Issue #12405 · microsoft/TypeScript · GitHub
Open Graph Title: error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. · Issue #12405 · microsoft/TypeScript
X Title: error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. · Issue #12405 · microsoft/TypeScript
Description: Attempting to change the declaration file output directory, I get the following error: error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. tsconfig.json looks like this: { "$schema": "http://json.schemastore....
Open Graph Description: Attempting to change the declaration file output directory, I get the following error: error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. tsconfig.json looks like this...
X Description: Attempting to change the declaration file output directory, I get the following error: error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. tsconfig.json...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/12405
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'.","articleBody":"Attempting to change the declaration file output directory, I get the following error:\r\n\r\n> error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'.\r\n\r\n`tsconfig.json` looks like this:\r\n\r\n```\r\n{\r\n \"$schema\": \"http://json.schemastore.org/tsconfig\",\r\n \"compilerOptions\": {\r\n \"module\": \"amd\",\r\n \"target\": \"es6\",\r\n \"outFile\": \"../assets/js/main.js\",\r\n \"sourceMap\": true,\r\n \"declaration\": true,\r\n \"declarationDir\": \"../\"\r\n }\r\n}\r\n```\r\n\r\nI want my `.d.ts` file emitted somewhere else, since that's not a public asset.\r\n\r\nWhy is this not permitted?\r\n\r\nI'm forced to create two (near-identical) `tsconfig` files and run the compiler twice to get the declaration file and output file. What for?\r\n","author":{"url":"https://github.com/mindplay-dk","@type":"Person","name":"mindplay-dk"},"datePublished":"2016-11-21T10:25:56Z","url":"https://github.com/microsoft/TypeScript/issues/12405"}
| 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:99d2dc3f-0971-b29b-1ebf-bebec0f3c4d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9046:1D1AA5:A6A394:E7E02C:6B05A25F |
| html-safe-nonce | 6a5bc94455521fefd45a3789a4fcf028704f042e1bb167ce0de520005865e736 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDQ2OjFEMUFBNTpBNkEzOTQ6RTdFMDJDOjZCMDVBMjVGIiwidmlzaXRvcl9pZCI6IjUxMDA1NTczMDU0MzU3NTkxOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8c0b909bc004be7de074f50e9efb1182835bbc6edcef57f809c4da54b775b8dd |
| hovercard-subject-tag | issue:190674801 |
| 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/12405/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a8f0dd1620d109218f43bd02809cb83355c68291c790678705008be4704195c/microsoft/TypeScript/issues/12405 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a8f0dd1620d109218f43bd02809cb83355c68291c790678705008be4704195c/microsoft/TypeScript/issues/12405 |
| og:image:alt | Attempting to change the declaration file output directory, I get the following error: error TS5053: Option 'declarationDir' cannot be specified with option 'outFile'. tsconfig.json looks like this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mindplay-dk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1fb3ddc0b71892c329818732762bc26c09d4e193a34ef934888d4731e69c0173 |
| 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 | 001eaa59a2e6bac6dc88d27c00f0240847562453 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width