gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Add sveltekit build and dist

Open cellulosa opened this issue 4 months ago • 1 comments

Reasons for making this change

This update excludes the dist/ and build/ directories from version control.

Why:

  • build/: This folder is generated when running vite build in SvelteKit apps. It’s a temporary output used for deployment and doesn’t need to be tracked in Git.
  • dist/: This is commonly used in Svelte libraries or packages as the output directory for compiled code. Like build/, it’s a generated artifact and should not be committed.

Tracking these folders can cause unnecessary noise in the repository, potential merge conflicts, and confusion over what’s source vs. what’s generated.

These directories should be reproducible from source using build commands (pnpm build, turbo build, etc.), so there’s no need to keep them in version control.

Links to documentation supporting these rule changes

  • https://svelte.dev/docs/kit/building-your-app
  • https://svelte.dev/docs/kit/packaging

Merge and Approval Steps

  • [x] Confirm that you've read the contribution guidelines and ensured your PR aligns
  • [ ] Ensure CI is passing
  • [ ] Get a review and Approval from one of the maintainers

cellulosa avatar Jul 26 '25 09:07 cellulosa

This PR is stale because there have been no updates in 90 days. It will close after 180 days of inactivity. Leave a comment if you want to keep it open :smile:

github-actions[bot] avatar Nov 07 '25 16:11 github-actions[bot]