DEV Community

Discussion on: How to Create and Publish a React Component Library

Collapse
 
jay__6f0d370ab80c134d48f2 profile image
Jay

Thanks for this article. I just recently created a pirate library for my job. This article looks spot on.

The one thing that helped me, I didn’t want to post all my project, and when you do an npm publish from the root, it posts your whole project. So what I do is copy my package,json, and node modules into the dist folder, cd into it, and do my npm publish from there. It makes a much cleaner finished product.

Collapse
 
lalilunar profile image
Laura

Hey, how did you use a private package in another project? I created a private repo/package and I tried to use it in another project but got 404 and can't find the way around to fix it and use it!
Thanks in advance!

Some comments have been hidden by the post's author - find out more