Skip to content

Contributing

Guidelines

Generated default layout

Edit lib/defaults/default.root.layout.ts, then run npm run build:defaults to regenerate lib/defaults/default.root.layout.js. The JavaScript is checked in so normal development and tests work immediately after checkout, without a declaration build or a runtime TypeScript loader. Do not edit the generated JavaScript directly. Both layouts are published, and eject copies the requested language (rewriting the TypeScript type import to the public package entry). Declaration cleanup and npm run clean deliberately preserve the generated JavaScript.

Releasing

Changelog, and releasing is automated with npm scripts and actions. To create a release:

If for some reason that isn’t working or a local release is preferred, follow these steps:

Generation belongs in version, not preversion (which runs before the version update) or postversion (which runs after the commit and tag). The release workflow’s pre-version reset/clean is safe because the initial generated JavaScript is tracked and the version hook rebuilds it before staging.