{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/ts-node/issues/635","repository_url":"https://api.github.com/repos/TypeStrong/ts-node","labels_url":"https://api.github.com/repos/TypeStrong/ts-node/issues/635/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/ts-node/issues/635/comments","events_url":"https://api.github.com/repos/TypeStrong/ts-node/issues/635/events","html_url":"https://github.com/TypeStrong/ts-node/issues/635","id":339246385,"node_id":"MDU6SXNzdWUzMzkyNDYzODU=","number":635,"title":"Global and GlobalAugmented not working","user":{"login":"bilby91","id":2201079,"node_id":"MDQ6VXNlcjIyMDEwNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/2201079?v=4","gravatar_id":"","url":"https://api.github.com/users/bilby91","html_url":"https://github.com/bilby91","followers_url":"https://api.github.com/users/bilby91/followers","following_url":"https://api.github.com/users/bilby91/following{/other_user}","gists_url":"https://api.github.com/users/bilby91/gists{/gist_id}","starred_url":"https://api.github.com/users/bilby91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bilby91/subscriptions","organizations_url":"https://api.github.com/users/bilby91/orgs","repos_url":"https://api.github.com/users/bilby91/repos","events_url":"https://api.github.com/users/bilby91/events{/privacy}","received_events_url":"https://api.github.com/users/bilby91/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-08T18:24:46Z","updated_at":"2018-07-09T18:56:10Z","closed_at":"2018-07-08T23:25:05Z","author_association":"NONE","body":"Hello,\r\n\r\nI'm trying to use `ts-node` to workaround an issue in jest that doesn't allow `globalSetup` and `globalTeardown` using typescript.\r\n\r\nMy project compiles correctly using `tsc`, now, when I use `ts-node` to require the code, my global files seem to be ignored. \r\n\r\nI have `globals.d.ts` and `globalsAugmented.d.ts`.\r\n\r\nIn `globals.d.ts` I do multiple global `declare type` and in the `globalsAugmented.d.ts` I define other global interfaces that depend on other modules I have in the system.\r\n\r\nMy project is splited in two different `tsconfig.json` files. My main one and a secondary for the tests. The tests tsconfig extend the main one. Could this be generating issues ? As I mentioned before, `tsc` is able to compile without issue with both of them.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/TypeStrong/ts-node/issues/comments/403584324","html_url":"https://github.com/TypeStrong/ts-node/issues/635#issuecomment-403584324","issue_url":"https://api.github.com/repos/TypeStrong/ts-node/issues/635","id":403584324,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzU4NDMyNA==","user":{"login":"bilby91","id":2201079,"node_id":"MDQ6VXNlcjIyMDEwNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/2201079?v=4","gravatar_id":"","url":"https://api.github.com/users/bilby91","html_url":"https://github.com/bilby91","followers_url":"https://api.github.com/users/bilby91/followers","following_url":"https://api.github.com/users/bilby91/following{/other_user}","gists_url":"https://api.github.com/users/bilby91/gists{/gist_id}","starred_url":"https://api.github.com/users/bilby91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bilby91/subscriptions","organizations_url":"https://api.github.com/users/bilby91/orgs","repos_url":"https://api.github.com/users/bilby91/repos","events_url":"https://api.github.com/users/bilby91/events{/privacy}","received_events_url":"https://api.github.com/users/bilby91/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T18:56:10Z","updated_at":"2018-07-09T18:56:10Z","author_association":"NONE","body":"@blakeembrey Thanks for the quick reply again!\r\n\r\nI think I got your point. I basically need to explicitly declare in the `types` array the path to `globals.d.ts` and `globalsAugmented.d.ts` right ? I would also need to add the `node_modules/@types` and `node_modules` so that I don't loose the default behaviour.\r\n\r\nThanks again! \r\n\r\n:)"}}
{"actor":{"display_login":"bilby91"}}