bun installSubmodules (for type generation) are pulled automatically. If you cloned without --recurse-submodules:
git submodule update --initUse braces for every control statement and blank lines between logical steps. Preserve blank lines between import groups. Keep consecutive assignments or calls together when they form one step, such as repeated string replacements or related state updates. Group adjacent declarations that describe one step, and separate declarations that start a different step.
Run bun run lint:fix to apply lint fixes followed by Oxfmt. It retries lint fixes
once to resolve overlapping brace and spacing edits. Verify with bun run lint
and bun run fmt:check.
This repo uses Changesets to manage versioning and publishing of @gwigz/slua-types and @gwigz/slua-tstl-plugin.
Both packages are version-locked, they always share the same version number. When either package changes, both are bumped together.
When your PR includes changes to either published package, add a changeset:
bun changesetThis will prompt you to:
- Select which packages changed (both will be bumped regardless due to the
fixedconfig) - Choose a bump type (patch / minor / major)
- Write a summary of the change
A markdown file is created in .changeset/, commit it with your PR.
- Push or merge to
main - The Release workflow detects pending changesets and opens a "Version Packages" PR
- That PR updates
package.jsonversions andCHANGELOG.mdfiles - Merging the "Version Packages" PR triggers
npm publishfor both packages
Every PR and push to main runs the CI workflow:
- Format check (
oxfmt --check) - Lint (
oxlint) - Type generation
- Build
- Tests