Skip to content

chore: use @metamask/messenger CLI for action type generation#577

Open
cryptodev-2s wants to merge 4 commits intomainfrom
chore/use-messenger-generate-action-types-cli
Open

chore: use @metamask/messenger CLI for action type generation#577
cryptodev-2s wants to merge 4 commits intomainfrom
chore/use-messenger-generate-action-types-cli

Conversation

@cryptodev-2s
Copy link
Copy Markdown
Contributor

@cryptodev-2s cryptodev-2s commented Apr 1, 2026

Explanation

Replace the local scripts/generate-method-action-types.ts (755 lines) with the messenger-generate-action-types CLI shipped in @metamask/messenger@^1.1.0.

  • Delete duplicated script
  • Bump @metamask/messenger from ^0.3.0 to ^1.1.0
  • Remove tsx devDependency (no longer needed)
  • Regenerate action types file (header comment change only)

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed

Note

Medium Risk
Medium risk because it upgrades @metamask/messenger to ^1.1.0 and changes the action-type generation path, which could affect build/lint output and downstream dependency resolution.

Overview
Switches method-action-type generation from the repo’s custom scripts/generate-method-action-types.ts to the messenger-generate-action-types CLI shipped with @metamask/messenger.

Bumps @metamask/messenger to ^1.1.0 (including a new Yarn resolutions pin), removes the tsx devDependency and related LavaMoat allowlist entry, and updates the generated SmartTransactionsController action-types header comment accordingly. The changelog is updated to reflect the messenger bump.

Written by Cursor Bugbot for commit 566b7ff. This will update automatically on new commits. Configure here.

- Delete local scripts/generate-method-action-types.ts (755 lines)
- Bump @metamask/messenger from ^0.3.0 to ^1.1.0
- Remove tsx devDependency (no longer needed)
- Update generate script to use messenger-generate-action-types CLI
@cryptodev-2s cryptodev-2s marked this pull request as ready for review April 1, 2026 20:59
@cryptodev-2s cryptodev-2s requested a review from a team as a code owner April 1, 2026 20:59
@cryptodev-2s cryptodev-2s self-assigned this Apr 1, 2026
@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 1, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​messenger@​0.3.0 ⏵ 1.1.09910078 +293 +8100

View full report

@cryptodev-2s cryptodev-2s enabled auto-merge (squash) April 1, 2026 21:32
"scripts": {
"build": "ts-bridge --project tsconfig.build.json --clean",
"generate-method-action-types": "tsx ./scripts/generate-method-action-types.ts ./src",
"generate-method-action-types": "messenger-generate-action-types",
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.

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.

2 participants