latitude-dev / latitude

Developer-first embedded analytics
https://latitude.so
GNU Lesser General Public License v3.0
673 stars 26 forks source link

Fix: svelte package dev watch mode #407

Closed csansoon closed 2 weeks ago

csansoon commented 2 weeks ago

Describe your changes

During the build process of our client/svelte package, the build:css process is executed, which compiles the tailwind styles into the dist/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 runs svelte-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, including dist/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.

changeset-bot[bot] commented 2 weeks ago

⚠️ No Changeset found

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.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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