Skip to content

feat: export versioner as package#74

Merged
alxdca merged 6 commits intomainfrom
feat/pack-versioner
Apr 21, 2026
Merged

feat: export versioner as package#74
alxdca merged 6 commits intomainfrom
feat/pack-versioner

Conversation

@alxdca
Copy link
Copy Markdown
Collaborator

@alxdca alxdca commented Apr 21, 2026

Depends on #73. This PR is part of a stack created with Aviator.

Summary

  • expose the orbit versioner as a package entrypoint via main, types, and exports
  • add a dedicated package build/prepack path with tsconfig.package-runtime.json
  • decouple the versioner runtime from Hardhat by exporting runOrbitVersioner(...) and using ethers JsonRpcProvider

Why / Context

  • this branch builds on top of feat/versioner-3.2.0 and makes that versioner logic consumable outside the repo's Hardhat runtime
  • packaging the versioner keeps the CLI/docker path usable while enabling reuse as a JS/TS package
  • to reduce the dependency surface, the versioner script no longer depends on Hardhat, which had only been used as a JSON-RPC provider

Test Plan

  • yarn build:package
  • Run yarn orbit:contracts:version with valid INBOX_ADDRESS and PARENT_RPC_URL
  • Verify a consumer can import the built entrypoint from dist/scripts/orbit-versioner/orbitVersioner.js

This was referenced Apr 21, 2026
@alxdca alxdca requested a review from yahgwai April 21, 2026 09:44
@alxdca alxdca changed the base branch from feat/versioner-3.2.0 to main April 21, 2026 12:11
@alxdca alxdca force-pushed the feat/pack-versioner branch 2 times, most recently from e030a46 to f820a0e Compare April 21, 2026 12:16
@alxdca alxdca force-pushed the feat/pack-versioner branch from f820a0e to dfd7298 Compare April 21, 2026 12:16
@alxdca alxdca marked this pull request as ready for review April 21, 2026 12:39
@alxdca alxdca merged commit 6221aad into main Apr 21, 2026
11 checks passed
@alxdca alxdca deleted the feat/pack-versioner branch April 21, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants