DEV Community

Discussion on: Angular 10 + Storybook + npm package = NG Design System 💜 - Step-by-Step

Collapse
 
activenode profile image
David Lorenz

Can you provide more information where your @messages2raja /pattern-lib is located and how you installed it?

Collapse
 
messages2raja profile image
messages2raja

it is located in npmjs.org url: npmjs.com/package/@messages2raja/p...
I have installed it via the npm i command.

Thread Thread
 
activenode profile image
David Lorenz

I think i can see the problem. You were probably running npm publish in your root directory right?

That however would publish your whole angular project. What you want instead is build it and then go to dist/pattern-lib and run npm publish from there :)

Hope that solves it. I will enhance the article.