Expose TypeScript global variables as node module