Jayampathy Wijesena
Jayampathy Wijesena

Reputation: 1740

How to share angular library without NPM

I'm developing a component library which I don't want to share in npmjs, is there any way to share my angular library with other angular projects with out sharing it with NPM.

Upvotes: 9

Views: 3633

Answers (2)

vadjs
vadjs

Reputation: 355

The best way - to have your own npm registry and publish in it. It's often in medium or big companies.

Easier way - to publish your package library in git repository and add lobrary as package with git source. You can see how to do it in npm documentation. https://docs.npmjs.com/files/package.json#dependencies

Upvotes: 0

madhavsai bhushan
madhavsai bhushan

Reputation: 263

yes try verdaccio which stores ur packaged library in your local storage when u npm i libraryname first it searches for library in local storage and then searches for public npm https://verdaccio.org/docs/en/installation

Upvotes: 2

Related Questions