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

236
Views
How to use a library in ionic application without publishing it to npm

created an angular application, ionic application and a custom library in workspace, able to import library files into angular application but not into ionic application. My question is - I have a library in some folder of my local system. Can I use this library in my application without making the package published in npm. How to use a module in my application without publishing it

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

0

You could git push it and then add it to your package.json like this:

"dependencies": {
  "cordova-plugin-local-notification": "git+https://github.com/katzer/cordova-plugin-local-notifications.git"
}

(that's an actual working import in one of my projects - the imported library is not mine)

about 4 years ago · Juan Pablo Isaza Report

0

If your library is local, you can reference it from your tsconfig.json at the root of your project :

{
    "compilerOptions": {
        "paths": {
            "your-lib-name": ["path/to/your/lib"]
        }
    }
}

Then, everything exported from your library will be available in your project.

import { SomeClass } from 'your-lib-name'; 
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!