Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

190
Visualizações
Merging NPM dependancy with a VUE.js Javascript Project

For a particular case in a Vue.js and JavaScript project a NPM package dependency have to be merge with the current JavaScript code base.

In that specific case, the NPM package should not be part of the nodes_modules folder anymore but rather be part of the JavaScript code itself.

In that case as both codebases will grow together in the future. (Independently from the original NPM package and not as a Fork)

How can I merge or fusion a NPM package to a Javascript project?

Additional Details:

  • The library that need to be merge is OIDC client. It's an open source project "Archived" by it's author (So no possibility to create Pull Request for a new release).
  • It is use to create a SSO for an internal project. This library has been retain by architect the for specific need of the project and there is no other option than this one.
  • There is no "internal package manager" available in this company
  • I don't want to host the fork on my personal Github and manage the package on NPM website
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

After many attempt to solve this problem, it turn out that Patch-Package do the best job to merge a dependency by simply patching over instead of forking.

Syntax is pretty simple and it integrate very well with NPM:

  1. Installation: npm i patch-package

  2. Modify the code of your dependency directly in node_modules folder

  3. Run npx patch-package some-package where some-package is the name of your package to patch

https://github.com/ds300/patch-package

Documentation: https://github.com/ds300/patch-package

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda