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'm always frustrated when svelte-package creates a package.json not to my liking.
In a monorepo I have specified the following two entries in the original package.json to allow a component library to work with the svelte-kit generated website:
FWIW I create a svelte-package-unpackgist which will copy the package content to the root folder and creates appropriate package.json files in subfolders. This allows typescript to find the correct typings and use the package in place (for use in a monorepo).
Make sure to add the generated folders to the .gitignore
The gist can simply be run by npx after build:
Describe the problem
I'm always frustrated when
svelte-package
creates apackage.json
not to my liking.In a monorepo I have specified the following two entries in the original
package.json
to allow a component library to work with thesvelte-kit
generated website:This is shamefully copied by the
svelte-package
library.Describe the proposed solution
Allow
packageJson
generation to be overwritten in thepackage
config section ofsvelte.config.js
.Alternatives considered
Post edit the generated package.json
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: