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

189
Views
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 answers
Answer question

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 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!