{"action":"created","issue":{"url":"https://api.github.com/repos/smrq/tsify/issues/33","labels_url":"https://api.github.com/repos/smrq/tsify/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/smrq/tsify/issues/33/comments","events_url":"https://api.github.com/repos/smrq/tsify/issues/33/events","html_url":"https://github.com/smrq/tsify/issues/33","id":61718786,"number":33,"title":"Multifile support?","user":{"login":"duncanmak","id":4791,"avatar_url":"https://avatars.githubusercontent.com/u/4791?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanmak","html_url":"https://github.com/duncanmak","followers_url":"https://api.github.com/users/duncanmak/followers","following_url":"https://api.github.com/users/duncanmak/following{/other_user}","gists_url":"https://api.github.com/users/duncanmak/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanmak/subscriptions","organizations_url":"https://api.github.com/users/duncanmak/orgs","repos_url":"https://api.github.com/users/duncanmak/repos","events_url":"https://api.github.com/users/duncanmak/events{/privacy}","received_events_url":"https://api.github.com/users/duncanmak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-15T00:23:10Z","updated_at":"2015-03-15T01:13:51Z","closed_at":null,"body":"I'm trying out tsify, and I can't seem to make it work with multiple files.\r\n\r\n```javascript\r\nvar typescriptSources = [\r\n    './src/hello.ts',\r\n    './src/main.ts'\r\n];\r\n\r\nvar typings = [\r\n    './typings/react/react.d.ts',\r\n    './typings/underscore/underscore.d.ts'\r\n];\r\n\r\ngulp.task('browserify', function () {\r\n    browserify({ entries: typescriptSources.concat(typings), path: ['./src'], debug: true })\r\n        .plugin('tsify')\r\n        .bundle()\r\n        .pipe(source('bundle.js'))\r\n        .pipe(gulp.dest('dist'));\r\n});\r\n```\r\nWhen I load this in the browser, I get `Uncaught Error: Cannot find module './hello'`\r\n\r\nMy code is available here: https://github.com/duncanmak/react-experiments/tree/use-tsify/with-typescript."},"comment":{"url":"https://api.github.com/repos/smrq/tsify/issues/comments/80789705","html_url":"https://github.com/smrq/tsify/issues/33#issuecomment-80789705","issue_url":"https://api.github.com/repos/smrq/tsify/issues/33","id":80789705,"user":{"login":"duncanmak","id":4791,"avatar_url":"https://avatars.githubusercontent.com/u/4791?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanmak","html_url":"https://github.com/duncanmak","followers_url":"https://api.github.com/users/duncanmak/followers","following_url":"https://api.github.com/users/duncanmak/following{/other_user}","gists_url":"https://api.github.com/users/duncanmak/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanmak/subscriptions","organizations_url":"https://api.github.com/users/duncanmak/orgs","repos_url":"https://api.github.com/users/duncanmak/repos","events_url":"https://api.github.com/users/duncanmak/events{/privacy}","received_events_url":"https://api.github.com/users/duncanmak/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T01:13:51Z","updated_at":"2015-03-15T01:13:51Z","body":"I was able to make it work by forcing everything to use absolute paths.\r\n\r\nhttps://github.com/duncanmak/react-experiments/commit/3f9bd86866b312351e98d6ed9f5bb849a65f5683\r\n\r\nIs there another way around this?\r\n"}}