Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

114
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda