{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/tsify/issues/196","repository_url":"https://api.github.com/repos/TypeStrong/tsify","labels_url":"https://api.github.com/repos/TypeStrong/tsify/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/tsify/issues/196/comments","events_url":"https://api.github.com/repos/TypeStrong/tsify/issues/196/events","html_url":"https://github.com/TypeStrong/tsify/issues/196","id":175701612,"number":196,"title":"Issue with lib setting in the tsconfig.json","user":{"login":"remojansen","id":10656223,"avatar_url":"https://avatars.githubusercontent.com/u/10656223?v=3","gravatar_id":"","url":"https://api.github.com/users/remojansen","html_url":"https://github.com/remojansen","followers_url":"https://api.github.com/users/remojansen/followers","following_url":"https://api.github.com/users/remojansen/following{/other_user}","gists_url":"https://api.github.com/users/remojansen/gists{/gist_id}","starred_url":"https://api.github.com/users/remojansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remojansen/subscriptions","organizations_url":"https://api.github.com/users/remojansen/orgs","repos_url":"https://api.github.com/users/remojansen/repos","events_url":"https://api.github.com/users/remojansen/events{/privacy}","received_events_url":"https://api.github.com/users/remojansen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TypeStrong/tsify/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"cartant","id":3878593,"avatar_url":"https://avatars.githubusercontent.com/u/3878593?v=3","gravatar_id":"","url":"https://api.github.com/users/cartant","html_url":"https://github.com/cartant","followers_url":"https://api.github.com/users/cartant/followers","following_url":"https://api.github.com/users/cartant/following{/other_user}","gists_url":"https://api.github.com/users/cartant/gists{/gist_id}","starred_url":"https://api.github.com/users/cartant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartant/subscriptions","organizations_url":"https://api.github.com/users/cartant/orgs","repos_url":"https://api.github.com/users/cartant/repos","events_url":"https://api.github.com/users/cartant/events{/privacy}","received_events_url":"https://api.github.com/users/cartant/received_events","type":"User","site_admin":false},"assignees":[{"login":"cartant","id":3878593,"avatar_url":"https://avatars.githubusercontent.com/u/3878593?v=3","gravatar_id":"","url":"https://api.github.com/users/cartant","html_url":"https://github.com/cartant","followers_url":"https://api.github.com/users/cartant/followers","following_url":"https://api.github.com/users/cartant/following{/other_user}","gists_url":"https://api.github.com/users/cartant/gists{/gist_id}","starred_url":"https://api.github.com/users/cartant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartant/subscriptions","organizations_url":"https://api.github.com/users/cartant/orgs","repos_url":"https://api.github.com/users/cartant/repos","events_url":"https://api.github.com/users/cartant/events{/privacy}","received_events_url":"https://api.github.com/users/cartant/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-09-08T09:04:39Z","updated_at":"2016-09-08T23:45:28Z","closed_at":null,"body":"So I'm targeting ES5 but I have added support for some ES6 elements using `lib` in `tsconfig`:\r\n\r\n```js\r\n{\r\n    \"compilerOptions\": {\r\n        \"target\": \"es5\",\r\n        \"lib\": [\"es6\", \"dom\"],\r\n        ...\r\n    }\r\n}\r\n```\r\n\r\nYou can see my [tsconfig.json](https://github.com/remojansen/InversifyJS/blob/master/tsconfig.json#L4) if you need it.\r\n\r\nI'm using `typescript@rc` 2.0 and this is my gulp task:\r\n\r\n```js\r\ngulp.task(\"build-bundle-test\", function() {\r\n\r\n  var mainTsFilePath = \"test/inversify.test.ts\";\r\n  var outputFolder   = \"temp/\";\r\n  var outputFileName = \"bundle.test.js\";\r\n\r\n  var bundler = browserify({\r\n    debug: true,\r\n    standalone : \"inversify\"\r\n  });\r\n\r\n  // TS compiler options are in tsconfig.json file\r\n  return bundler.add(mainTsFilePath)\r\n                .plugin(tsify, { typescript: require(\"typescript\") })\r\n                .bundle()\r\n                .pipe(source(outputFileName))\r\n                .pipe(buffer())\r\n                .pipe(sourcemaps.init({ loadMaps: true }))\r\n                .pipe(sourcemaps.write(\".\"))\r\n                .pipe(gulp.dest(outputFolder));\r\n});\r\n```\r\n\r\nYou can see my [gulpfile.js](https://github.com/remojansen/InversifyJS/blob/master/gulpfile.js#L157-L165) if you need it.\r\n\r\nI run the build in AppVeyor and is failing only in one version of node:\r\n\r\n```\r\nnodejs_version=stable\r\n```\r\n\r\nYou can see all the build logs [here](https://ci.appveyor.com/project/remojansen/inversifyjs/build/186) and the failing build [here](https://ci.appveyor.com/project/remojansen/inversifyjs/build/186/job/seme7r35dlq5rs87#L812).\r\n\r\n\r\nThe error is:\r\n```\r\nTypeScript error: Error TS2318: Cannot find global type 'Array'.\r\n```\r\n\r\nThis maybe think that it could be related with the `lib` setting in the `tsconfig.json` file but I'm not sure.\r\n\r\nThanks!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/TypeStrong/tsify/issues/comments/245776867","html_url":"https://github.com/TypeStrong/tsify/issues/196#issuecomment-245776867","issue_url":"https://api.github.com/repos/TypeStrong/tsify/issues/196","id":245776867,"user":{"login":"remojansen","id":10656223,"avatar_url":"https://avatars.githubusercontent.com/u/10656223?v=3","gravatar_id":"","url":"https://api.github.com/users/remojansen","html_url":"https://github.com/remojansen","followers_url":"https://api.github.com/users/remojansen/followers","following_url":"https://api.github.com/users/remojansen/following{/other_user}","gists_url":"https://api.github.com/users/remojansen/gists{/gist_id}","starred_url":"https://api.github.com/users/remojansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remojansen/subscriptions","organizations_url":"https://api.github.com/users/remojansen/orgs","repos_url":"https://api.github.com/users/remojansen/repos","events_url":"https://api.github.com/users/remojansen/events{/privacy}","received_events_url":"https://api.github.com/users/remojansen/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T23:45:27Z","updated_at":"2016-09-08T23:45:27Z","body":"I tried in my laptop (OSX with node v5.8.0) and it was fine. Tried then with node v6.5.0 and it is fine too. There must be something weird in AppVeyor."}}
{"actor":{"display_login":"remojansen"}}