You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating svelte libraries. I create a npm library from each project. All projects serves website as well and I use components from packages/ui/components dir.
In order to do this I need to add dependencies in each library package.json:
"dependencies": {
"@repo/typescript-config": "workspace:*",
"@repo/ui": "workspace:*",
// I have my own dependencies
}
My understanding is that if I add dependencies, and user install the library, it will install dependencies as well.
So my questions is that won't it be a problem to add this dependencies in package.json?
Can I add it to devDependencies?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am creating svelte libraries. I create a npm library from each project. All projects serves website as well and I use components from
packages/ui/components
dir.In order to do this I need to add dependencies in each library package.json:
My understanding is that if I add dependencies, and user install the library, it will install dependencies as well.
So my questions is that won't it be a problem to add this dependencies in package.json?
Can I add it to
devDependencies
?Beta Was this translation helpful? Give feedback.
All reactions