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

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

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 Denunciar

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