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

231
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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