{"action":"created","issue":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/99","labels_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/99/comments","events_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/99/events","html_url":"https://github.com/ivogabe/gulp-typescript/pull/99","id":72218035,"number":99,"title":"tsconfig.json","user":{"login":"ivogabe","id":4706418,"avatar_url":"https://avatars.githubusercontent.com/u/4706418?v=3","gravatar_id":"","url":"https://api.github.com/users/ivogabe","html_url":"https://github.com/ivogabe","followers_url":"https://api.github.com/users/ivogabe/followers","following_url":"https://api.github.com/users/ivogabe/following{/other_user}","gists_url":"https://api.github.com/users/ivogabe/gists{/gist_id}","starred_url":"https://api.github.com/users/ivogabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivogabe/subscriptions","organizations_url":"https://api.github.com/users/ivogabe/orgs","repos_url":"https://api.github.com/users/ivogabe/repos","events_url":"https://api.github.com/users/ivogabe/events{/privacy}","received_events_url":"https://api.github.com/users/ivogabe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-30T16:46:45Z","updated_at":"2015-05-02T08:33:58Z","closed_at":"2015-05-01T07:49:51Z","pull_request":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/pulls/99","html_url":"https://github.com/ivogabe/gulp-typescript/pull/99","diff_url":"https://github.com/ivogabe/gulp-typescript/pull/99.diff","patch_url":"https://github.com/ivogabe/gulp-typescript/pull/99.patch"},"body":"```javascript\r\nvar tsProject = ts.createProject('tsconfig.json');\r\n\r\ngulp.task('default', function() {\r\n    return tsProject.src()\r\n        .pipe(ts(tsProject))\r\n        .pipe(gulp.dest('release'));\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/comments/98330948","html_url":"https://github.com/ivogabe/gulp-typescript/pull/99#issuecomment-98330948","issue_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/99","id":98330948,"user":{"login":"ifyio","id":675909,"avatar_url":"https://avatars.githubusercontent.com/u/675909?v=3","gravatar_id":"","url":"https://api.github.com/users/ifyio","html_url":"https://github.com/ifyio","followers_url":"https://api.github.com/users/ifyio/followers","following_url":"https://api.github.com/users/ifyio/following{/other_user}","gists_url":"https://api.github.com/users/ifyio/gists{/gist_id}","starred_url":"https://api.github.com/users/ifyio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifyio/subscriptions","organizations_url":"https://api.github.com/users/ifyio/orgs","repos_url":"https://api.github.com/users/ifyio/repos","events_url":"https://api.github.com/users/ifyio/events{/privacy}","received_events_url":"https://api.github.com/users/ifyio/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T08:33:57Z","updated_at":"2015-05-02T08:33:57Z","body":"Hi. I'm trying to move to `tsconfig.json`. In my gulp file, I'm doing the following:\r\n\r\n```\r\nvar tsProject = ts.createProject('tsconfig.json', {\r\n    typescript: typescript\r\n});\r\n\r\ngulp.task('build-ts', [], function() {\r\n    return gulp.src(paths.typescript)\r\n        .pipe(plumber())\r\n        .pipe(sourcemaps.init())\r\n        .pipe(ts(tsProject))\r\n        .pipe(sourcemaps.write())\r\n        .pipe(gulp.dest(paths.output));\r\n});\r\n```\r\n\r\nAnd `tsconfig.json` looks like \r\n\r\n```\r\n{\r\n    \"compilerOptions\": {\r\n        \"module\": \"commonjs\",\r\n        \"target\": \"es5\",\r\n        \"emitDecoratorMetadata\": true,\r\n        \"noExternalResolve\": true,\r\n        \"declarationFiles\": false\r\n    }\r\n}\r\n```\r\n\r\nI'm getting the following error however... `1148 Cannot compile external modules unless the '--module' flag is provided.`. Am I doing something wrong?"}}