Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about tsserverlibrary import. #2

Open
angelozerr opened this issue Apr 19, 2017 · 2 comments
Open

Question about tsserverlibrary import. #2

angelozerr opened this issue Apr 19, 2017 · 2 comments

Comments

@angelozerr
Copy link

angelozerr commented Apr 19, 2017

At first thanks for your sample, it is very helpfull.

https://github.com/angelozerr/tslint-language-service is a plugin for tslint. We have done like your sample to import tsserverlibrary:

import * as ts_module from "../node_modules/typescript/lib/tsserverlibrary";

But I tell me why you have not done like this:

import * as ts_module from "typescript/lib/tsserverlibrary";

With this declaration typescript can be hosted in several node_modules folder. no?

@angelozerr
Copy link
Author

@egamma what do you think about that?

@frankps
Copy link

frankps commented May 30, 2017

I have a question about this library: is it possible to use this library in order to parse & generate typescript code. Currently we're building an editor and we're using a lot of regular expressions in order to change typescript code. But we're looking for a better approach.
Thanks a lot, Frank

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

No branches or pull requests

2 participants