{"action":"created","issue":{"url":"https://api.github.com/repos/rollup/rollup-plugin-typescript/issues/45","repository_url":"https://api.github.com/repos/rollup/rollup-plugin-typescript","labels_url":"https://api.github.com/repos/rollup/rollup-plugin-typescript/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup-plugin-typescript/issues/45/comments","events_url":"https://api.github.com/repos/rollup/rollup-plugin-typescript/issues/45/events","html_url":"https://github.com/rollup/rollup-plugin-typescript/issues/45","id":158273499,"number":45,"title":"Ignore `declaration` setting in `tsconfig.json`","user":{"login":"jvilk","id":1141042,"avatar_url":"https://avatars.githubusercontent.com/u/1141042?v=3","gravatar_id":"","url":"https://api.github.com/users/jvilk","html_url":"https://github.com/jvilk","followers_url":"https://api.github.com/users/jvilk/followers","following_url":"https://api.github.com/users/jvilk/following{/other_user}","gists_url":"https://api.github.com/users/jvilk/gists{/gist_id}","starred_url":"https://api.github.com/users/jvilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvilk/subscriptions","organizations_url":"https://api.github.com/users/jvilk/orgs","repos_url":"https://api.github.com/users/jvilk/repos","events_url":"https://api.github.com/users/jvilk/events{/privacy}","received_events_url":"https://api.github.com/users/jvilk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-03T01:25:29Z","updated_at":"2016-06-19T22:23:44Z","closed_at":"2016-06-19T22:20:28Z","body":"I have `declaration` set to `true` in my `tsconfig.json` file so I can generate and distribute typings with my library for others consuming the individual modules. (I invoke the TypeScript compiler separately to produce the typings; it wouldn't make sense for `rollup-plugin-typescript` to generate them for me.)\r\n\r\nThe TypeScript plugins for Browserify and Webpack seem to ignore this setting, but `rollup-plugin-typescript` passes it to the TypeScript compiler, resulting in the following error message:\r\n\r\n```\r\nError loading /Users/jvilk/Code/browserfs/src/browserify_main.ts: Debug Failure. False expression: Unexpected multiple outputs for the file: '/Users/jvilk/Code/browserfs/build/node/browserify_main.d.ts'\r\n```\r\n\r\nAfter Googling a bit, it appears that this is a limitation of the TypeScript compiler's `transpileModule` method. Overriding the `declaration` field to `false` fixes the problem.\r\n\r\nI think it would be great if you chose to do one of the following things:\r\n\r\n* Ignore the `declaration` setting, as it does not appear to be applicable. (But maybe I'm missing a scenario where it would be?), or...\r\n* Preemptively throw a more intelligible error when `declaration` is set to `true`."},"comment":{"url":"https://api.github.com/repos/rollup/rollup-plugin-typescript/issues/comments/227024086","html_url":"https://github.com/rollup/rollup-plugin-typescript/issues/45#issuecomment-227024086","issue_url":"https://api.github.com/repos/rollup/rollup-plugin-typescript/issues/45","id":227024086,"user":{"login":"Victorystick","id":703602,"avatar_url":"https://avatars.githubusercontent.com/u/703602?v=3","gravatar_id":"","url":"https://api.github.com/users/Victorystick","html_url":"https://github.com/Victorystick","followers_url":"https://api.github.com/users/Victorystick/followers","following_url":"https://api.github.com/users/Victorystick/following{/other_user}","gists_url":"https://api.github.com/users/Victorystick/gists{/gist_id}","starred_url":"https://api.github.com/users/Victorystick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victorystick/subscriptions","organizations_url":"https://api.github.com/users/Victorystick/orgs","repos_url":"https://api.github.com/users/Victorystick/repos","events_url":"https://api.github.com/users/Victorystick/events{/privacy}","received_events_url":"https://api.github.com/users/Victorystick/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T22:23:44Z","updated_at":"2016-06-19T22:23:44Z","body":"Released as version 0.7.6."}}
{"actor":{"display_login":"Victorystick"}}