Skip to content

chore: barebones constants-codegen project - #24687

Merged
mverzilli merged 9 commits into
merge-train/fairiesfrom
martin/constants-codegen
Jul 21, 2026
Merged

mverzilli merged 9 commits into
merge-train/fairiesfrom
martin/constants-codegen

Conversation

@mverzilli

@mverzilli mverzilli commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Introduces a new constants-codegen package at a new protocol tld.

  • Moves generator functions from yarn-projects/constants to this new package.
  • Removes hardcoded output file paths in favor of explicit CLI arguments
  • Preserves yarn-projects/constants remake-constants task to keep blast ratio low for now

yarn-projects/constants will be further simplified in subsequent PRs

Closes F-814, F-815, F-819

@mverzilli mverzilli added ci-draft Run CI on draft PRs. ci-full Run all master checks. labels Jul 14, 2026
@mverzilli
mverzilli marked this pull request as ready for review July 15, 2026 09:14
@mverzilli
mverzilli force-pushed the martin/constants-codegen branch from 2c9a635 to 68602b1 Compare July 15, 2026 09:28
@mverzilli
mverzilli requested a review from charlielye July 15, 2026 09:53
"README.md"
],
"scripts": {
"build": "tsc -p tsconfig.json",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might be able to fully ditch tsc here. e.g. in ipc-codegen.
Recent node that we have requirement on has experimental TS type stripping built in.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this but stumbled upon this, which means apparently we can't fully ditch it if we want to eventually publish it as a package: https://nodejs.org/api/typescript.html#type-stripping-in-dependencies

(I guess this hasn't been an issue with ipc-codegen so far as it is not yet packaged?)

Anyway, it does mean we can simplify runs in our own CI: e392bce#diff-1b3ca05af0b7eb9d08af88e7497463e1d6a91e6576752a7148a9b649e4607cfcL38-L48

@mverzilli mverzilli added ci-release-pr Creates a development tag and runs the release suite and removed ci-full Run all master checks. ci-draft Run CI on draft PRs. labels Jul 21, 2026
@AztecBot AztecBot removed the ci-release-pr Creates a development tag and runs the release suite label Jul 21, 2026
@mverzilli
mverzilli changed the base branch from next to merge-train/fairies July 21, 2026 11:18
@mverzilli
mverzilli merged commit 38c0eb2 into merge-train/fairies Jul 21, 2026
22 of 23 checks passed
@mverzilli
mverzilli deleted the martin/constants-codegen branch July 21, 2026 11:19
rangozd pushed a commit to rangozd/aztec-packages that referenced this pull request Aug 5, 2026
BEGIN_COMMIT_OVERRIDE
chore: remove obsolete no_predicates wrappers (AztecProtocol#7729) (AztecProtocol#24050)
chore: barebones constants-codegen project (AztecProtocol#24687)
chore: constants codegen release (AztecProtocol#24728)
END_COMMIT_OVERRIDE
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