Closed csansoon closed 2 weeks ago
Latest commit: 13265537c3ff358ead98706b8e7437369dc526c5
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Describe your changes
During the build process of our client/svelte package, the
build:css
process is executed, which compiles the tailwind styles into thedist/styles.css
files, which is necessary for this package to be correctly imported.Running the development environment of this package with
pnpm dev
breaks the exported files. This is because the dev mode runssvelte-package --watch
, which rebuild the svelte package each time a svelte file changes. The problem with this is that, to rebuild it, it first removes all contents of the dist file, includingdist/styles.css
, but does not compile tailwind again afterwards.Additionally,
build:css
is also called in watch mode, to update the styles file automatically too.