Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

113
Views
Should i put my library dependencies into devDependencies if I only publish the bundle of the library?

If i generate a bundle of a library, should I put the library dependencies in devDependencies?

I'm authoring a NPM library written in TypeScript which uses a quite amount of dependencies, such as React components. We do some build steps to compile down to JavaScript files, apply minification and bundle into a single JS file. The final published package for this library will contain just a JS file, the output of this build steps.

When I install the package all the dependencies of this library will be installed as well. Should I put those libraries as devDependencies instead in the package.json, given that they are not needed because the JS file will already bundle them?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Not sure about the way you build.

Not needed to put all devdependencies if it is already part of the js file.

If it is going to be only a js file, it can be hosted as CDN file.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!