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

Publish *.ts source? #25

Closed
den1k opened this issue Jul 7, 2018 · 1 comment
Closed

Publish *.ts source? #25

den1k opened this issue Jul 7, 2018 · 1 comment

Comments

@den1k
Copy link

den1k commented Jul 7, 2018

(I'm .ts noob)

For any package when using editor (vscode) features such as jump to source, it currently opens published, generated *t.ts file within the package in node_modules because the *.ts file does not seem to be published? This means to see the inner workings I must have downloaded the source repo of any library and manually track down the source code. If I'm wrong here I'd appreciate any advice on how to get this to work and apologize for the noise.

microsoft/TypeScript#12358 (comment)

@postspectacular
Copy link
Member

Publishing only *.js + *.d.ts declarations is indeed the official guidance I've been following so far, but I too have occasionally struggled with the jump-to-source, but don't know how to work around it. Of course, I do have the source repo available, but when I need to check something in 95% of the cases I also just use either the .d.ts or the .js file for reference...

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