Replies: 3 comments 1 reply
-
There is no meaningful heuristic between However I find it easier to visually grep what's used for what in my package.json by making anything that is used at runtime a |
Beta Was this translation helpful? Give feedback.
-
{
"devDependencies":{
"@sveltejs/adapter-auto":"workspace:*",
"@sveltejs/kit":"workspace:*",
"svelte":"^3.44.0",
"svelte-preprocess":"^4.9.8",
"typescript":"~4.6.2"
},
"dependencies":{
"@fontsource/fira-mono":"^4.5.0",
"@lukeed/uuid":"^2.0.0",
"cookie":"^0.5.0"
}
}
|
Beta Was this translation helpful? Give feedback.
-
A colleague pointed out to me that:
If you're publishing your app as a package, that's a good argument for installing packages as |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is every package installed as a dev dependency with
npm i -D <package>
because svelte is compiled? In what cases will we donpm i <package>
?EDIT: Sorry, I couldn't find a concrete answer from my reading. If this has been answered elsewhere, I'd like to know. I'm trying to understand compiled nature of svelte better.
Beta Was this translation helpful? Give feedback.
All reactions