Repository navigation
feat(co-build): new CoBuild package - #419
Conversation
Hanssen0
commented
Jul 1, 2026
- I have read the Contributing Guidelines
🦋 Changeset detectedLatest commit: 81ca371 The changes in this PR will be included in the next version bump. This PR includes changesets to release 21 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for liveccc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for apiccc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for docsccc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for appccc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR introduces a new @ckb-ccc/co-build workspace package implementing CoBuild protocol helpers/codecs, and wires it into the monorepo (tests and @ckb-ccc/shell exports).
Changes:
- Added the new
packages/co-buildpackage (codecs, CoBuild helpers, build/lint/docs config, and tests). - Exposed
coBuildvia@ckb-ccc/shelland added the workspace dependency. - Registered the package in the root Vitest multi-project config and updated the lockfile accordingly.
Reviewed changes
Copilot reviewed 21 out of 23 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| vitest.config.mts | Adds packages/co-build to the Vitest projects list. |
| pnpm-lock.yaml | Adds the new workspace importer and updates dependency snapshots. |
| packages/shell/src/barrel.ts | Re-exports coBuild from the new package. |
| packages/shell/package.json | Adds @ckb-ccc/co-build as a workspace dependency. |
| packages/co-build/package.json | Defines package metadata, exports, scripts, deps. |
| packages/co-build/README.md | Documents the new package and usage example. |
| packages/co-build/src/index.ts | Package entrypoint export(s). |
| packages/co-build/src/barrel.ts | Barrel re-exports of public APIs. |
| packages/co-build/src/coBuild.ts | Core CoBuild helpers: parse/manipulate/append/find + CoBuild class. |
| packages/co-build/src/coBuild.test.ts | Adds tests for CoBuild behavior. |
| packages/co-build/src/codec/index.ts | Codec entrypoint exports. |
| packages/co-build/src/codec/buildingPacket.ts | CoBuild Molecule codecs for actions/messages/script info. |
| packages/co-build/src/codec/witnessLayout.ts | Witness layout codec and SighashAll representation. |
| packages/co-build/tsdown.config.mts | Build configuration for ESM/CJS outputs and DTS. |
| packages/co-build/tsconfig.json | TypeScript configuration for the new package. |
| packages/co-build/eslint.config.mjs | Package-local ESLint configuration. |
| packages/co-build/prettier.config.cjs | Package-local Prettier configuration. |
| packages/co-build/.prettierignore | Prettier ignore rules for build artifacts/config. |
| packages/co-build/.npmignore | NPM publish ignore rules. |
| packages/co-build/typedoc.json | Typedoc config for the new package. |
| packages/co-build/misc/basedirs/dist/package.json | Sets ESM type for dist output. |
| packages/co-build/misc/basedirs/dist.commonjs/package.json | Sets CJS type for commonjs dist output. |
| .changeset/odd-experts-win.md | Changeset announcing the new package (minor bump). |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
08704cd to
e48172e
Compare
93203b5 to
698d3e5
Compare
bfc1b42 to
21f23d9
Compare
a648388 to
8e68462
Compare
