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

Just a question: What should I do if I am publishing a project using this template to npm ? #47

Closed
yw662 opened this issue Mar 26, 2023 · 3 comments

Comments

@yw662
Copy link

yw662 commented Mar 26, 2023

Like, Should I publish typescript source, or compiled js and dts, or both ? Should it build before publish or before install ? What should be added to npmignore ?

@Piranit
Copy link

Piranit commented Mar 30, 2023

I fully support it, it would be cool if you could just install it globally via npm and use it like a cli.
Do you need help with this or could you do it yourself?

@yw662
Copy link
Author

yw662 commented Mar 30, 2023

So I can just npm publish without any further modification ?

@jsynowiec
Copy link
Owner

It depends on your project and what you are publishing to the package registry. Please see https://docs.npmjs.com/creating-and-publishing-scoped-public-packages and https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html for details.

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

3 participants