Skip to content

Package repo as @reveal-protocol/contracts - #2

Open
farzaamam wants to merge 3 commits into
mainfrom
feat/npm-package
Open

Package repo as @reveal-protocol/contracts#2
farzaamam wants to merge 3 commits into
mainfrom
feat/npm-package

Conversation

@farzaamam

Copy link
Copy Markdown
Contributor

Add npm/TypeScript packaging around the existing Foundry workflow: ABI-only JSON exports, deployment metadata with validation, generated TS exports (deployments, chains, types), build scripts, viem example, and README/CHANGELOG/release hygiene.

farzaamam and others added 3 commits July 4, 2026 23:55
Add npm/TypeScript packaging around the existing Foundry workflow:
ABI-only JSON exports, deployment metadata with validation, generated
TS exports (deployments, chains, types), build scripts, viem example,
and README/CHANGELOG/release hygiene.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Replace prepare with prepublishOnly so installs never run forge build,
add scripts/smoke-import.mjs with a smoke:package script, add a Node 22
CI job (npm install, build, smoke test, npm pack --dry-run), and update
README with the release checklist and generated-files strategy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Enable noEmitOnError so tsc never emits a partial dist when generated
sources are missing, make smoke-import check required dist files before
importing, run the smoke test in prepublishOnly, and clean generated TS
sources in npm run clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant