Shared development and release tools for Galacean repositories.
Use Node.js >=24.0.0 and pnpm 10.33.2 for this workspace and its packages.
corepack enable
pnpm install
pnpm checkIf Corepack is missing, run npm install --global corepack first. Corepack downloads the project's pinned pnpm version on first use.
Run from the repository root:
| Command | Description |
|---|---|
pnpm check:ts |
Type-check packages under packages/ that define check:ts. |
pnpm lint |
Lint the repository. |
pnpm check |
Run both checks. |
Run from this workspace:
pnpm print-changelog -- /path/to/repository
pnpm update-version -- /path/to/repository
pnpm update-version -- --dry-run /path/to/repositoryOr install in another repository:
pnpm add -D @galacean/release-tools
pnpm exec print-changelog
pnpm exec update-versionprint-changelog generates a changelog from pull requests; update-version updates selected, non-private workspace packages with a version field. --dry-run only lists eligible packages. No build is required.
The target defaults to the current directory. Set it with a positional path or TARGET_REPOSITORY. Changelog options:
| Variable | Default |
|---|---|
GITHUB_REPOSITORY |
Inferred from the target's origin remote (owner/repository). |
CHANGELOG_BASE_BRANCH |
main |
Shared flat configuration for ESLint 10.2+ and TypeScript. Node.js >=24.0.0 is required:
pnpm add -D @galacean/eslint-config eslint typescriptConfigure ESLint:
import galacean from '@galacean/eslint-config';
export default galacean;Optional imports: @galacean/eslint-config/strict (type safety), /tests (test overrides), and /browser (browser compatibility). Keep file scopes, framework rules, and browser polyfills in the consuming project's configuration.