You need to install pnpm, which you can do with npm install pnpm@8 --global
While developing we use the example files in playground
, and use the command pnpm playground
to run these through the CLI.
There are a few guidelines we follow:
-
Internal variables are written with
snake_case
while external APIs are written withcamelCase
-
Provide a single object as the argument to public APIs. This object can have multiple properties
For changes to be reflected in package changelogs, run pnpm changeset
and follow the prompts. You need to do this for any changes to the public api.
The Changesets GitHub action will create and update a PR that applies changesets and publishes new versions of changed packages to npm.
Based on the SvelteKit Contributing Guide