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: I just wonder why this module is installed without '-D' . #285

Closed
bumjun-kim opened this issue Oct 12, 2021 · 2 comments
Closed

Comments

@bumjun-kim
Copy link

bumjun-kim commented Oct 12, 2021

Dear ppl.

Can anyone tell me why this module is installed by npm i type-fest ?

I thought typescript is a extensive tool for developer,
and type-fest is also a thing to enhance use of typescript.

In other words, (I supposed)
Typescript and other npm modules related to typescript are not needed at production env.

Am I missing something ?
Hope somebody give me a clue :)

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • The funding will be given to active contributors.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@bumjun-kim bumjun-kim changed the title I just wonder why this module is installed without '-D' . question: I just wonder why this module is installed without '-D' . Oct 12, 2021
@sindresorhus
Copy link
Owner

This really depends on how you use it. If you use it in a package, it needs to be added as a dependency since you depend on the types. If you use it in an app/server, it can be installed as a dev dependency. I'm using without -D just to be safe so people using it in packages don't make the mistake of installing it as a dev dependency.

@bumjun-kim
Copy link
Author

@sindresorhus Thnx for clearing up :)

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