Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Use TypeScript as a package dependency #4

Closed
ashwinr opened this issue Aug 3, 2013 · 1 comment
Closed

Use TypeScript as a package dependency #4

ashwinr opened this issue Aug 3, 2013 · 1 comment

Comments

@ashwinr
Copy link
Contributor

ashwinr commented Aug 3, 2013

Right now, it's a git submodule. Make it an npm package dependency instead.

@ashwinr
Copy link
Contributor Author

ashwinr commented Aug 5, 2013

Okay, so I investigated this some more. The TypeScript npm module has not been correctly implemented. It exports nothing, and so cannot be used in its current form. The other npm modules that depend on it use a hack: they load and execute the file typescript.js (from the installed package in node_modules) into the node VM, which creates a global TypeScript variable.

For now, this is not the right way for tslint. When the npm issue on TypeScript gets resolved, we'll immediately adopt it. It'll make our compilation much faster.

FYI: @derekcicerone

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant