Skip to content

feat: publish the registry as the root package's bin - #165

Merged
lmcorbalan merged 3 commits into
feat/registry-distributionfrom
feat/registry-package-bin
Sep 2, 2026
Merged

feat: publish the registry as the root package's bin#165
lmcorbalan merged 3 commits into
feat/registry-distributionfrom
feat/registry-package-bin

Conversation

@lmcorbalan

Copy link
Copy Markdown
Collaborator

Summary

Closes #159

The root manifest becomes the npm face of the repository: a scoped name, a bin that starts the registry service, and a files allowlist that actually ships the built output. A consumer can now pin this repo as a git dependency and run the service.

Changes

  • package.json: @bootnodedev/canton-token-forge 0.2.0, type: module, repository, engines, bin, files.
  • The dist ignore rule moves from registry/.gitignore to the root as registry/**/dist, because a nested ignore file outranks the files allowlist during the pack walk.
  • registry/src/index.ts gains a shebang; the node floor rises to 20, which two runtime dependencies require.

Acceptance criteria

  • All nine from the issue are met.

Test plan

Automated tests

Registry build, both typechecks, lint (40 files), 205/205 unit tests.

Manual verification

From a fresh clone: npm ci vendors nothing and emits 16 files to registry/dist; npm pack yields exactly 24 entries; that tarball installed into a consumer outside the repo runs its bin and exits 1 on its own config error. Five mutations all red, including putting dist back beside the code (0 dist entries shipped) and dropping "type": "module" (the ES module fails to load).

Breaking changes

The supported node floor moves from 18 to 20. Two packages in the runtime closure already required it, so >=18 was a promise the package could not keep.

Checklist

  • Self-reviewed my own diff
  • Tests added or updated
  • Docs updated (if applicable)
  • No unrelated changes bundled in

Screenshots

None.

@lmcorbalan lmcorbalan mentioned this pull request Sep 2, 2026
5 tasks
@lmcorbalan
lmcorbalan merged commit 48e55f4 into feat/registry-distribution Sep 2, 2026
4 checks passed
@lmcorbalan
lmcorbalan deleted the feat/registry-package-bin branch September 2, 2026 21:04
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Canton - dAppBooster (#390) Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants