Shashith Darshana
Shashith Darshana

Reputation: 2795

Using locally develop npm module

I have developed a nodejs project as an umd library, with the purpose to use it in a another nodejs project. The library project builds fine and generates the index.js file and index.min.js file.

But when I tried installing the library project locally using npm install "asolute path". It brings all the things in the library project. And the size of my project I want to use the library project grew. Seems it is because of all the files in library project is getting copied.

Thanks for any help in advance.

Upvotes: 0

Views: 48

Answers (1)

AKX
AKX

Reputation: 169338

Have you added an .npmignore file?

Also, you'll probably want to use npm link for local development.

Upvotes: 1

Related Questions