Nx workspace for the @hateoas-ts packages.
@hateoas-ts/resource- Type-safe HATEOAS client for HAL-compliant REST APIs.@hateoas-ts/resource-react- React hooks and provider for@hateoas-ts/resource.
pnpm install
pnpm nx show projects
pnpm build
pnpm testSee RELEASE.md for the full release guide and historical tag mapping.
This workspace uses nx release with fixed versioning, so @hateoas-ts/resource and @hateoas-ts/resource-react are always released together with the same version. Release tags use:
v<version>
Before releasing, audit changelog coverage with .pi/prompts/cl.md, then inspect the nx release --dry-run changelog preview and edit any generated entries that need more user-facing wording.
Historical npm releases before the fixed-release setup are also represented by package-specific git tags. New releases use v<version> tags.
pnpm nx release patch --dry-run --skip-publishUse minor, major, prerelease --preid beta, or an exact version instead of patch when needed. Do not release only one package; both packages should keep the same version.
Publishing is done by GitHub Actions when a v* tag is pushed. Configure the repository secret NPM_TOKEN first.
- Create the release commit and tag locally, but skip local publishing:
pnpm nx release patch --skip-publish
- Push the generated commit and tag(s) to trigger
.github/workflows/publish.yml:git push origin main --follow-tags