Migrate CLI from monorepo to module template#84
Migrate CLI from monorepo to module template#84AyushBherwani1998 wants to merge 5 commits intomainfrom
Conversation
b1f086d to
24b43cb
Compare
|
Caution MetaMask internal reviewing guidelines:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
src/lib/helpers/install-template.ts
Outdated
|
|
||
| if (stats.isFile()) { | ||
| let contents = fs.readFileSync(origFilePath, "utf8"); | ||
| let contents = fs.readFileSync(origFilePath, 'utf8'); |
Check failure
Code scanning / CodeQL
Potential file system race condition High
Description
Migrates CLI from monorepo to module template as examples are moved to @metamask/smart-accounts-kit-examples repo.
Note
Medium Risk
Medium risk because this primarily reshapes CI/release automation (new multi-job pipeline, security scan integration, and release/publish workflows), which can break builds or publishing if misconfigured.
Overview
Refactors the repository from “examples monorepo” toward a standalone
@metamask/create-gator-appmodule template. This removes theexamples/smart-accounts/signers/dynamicexample app and updates docs/changelog/issue templates to reflect the CLI-focused repo.Overhauls tooling and automation. Adds
depcheckconfig,.editorconfig, and a newprettierconfig (.prettierrc.mjs), replaces the minimal ESLint config with MetaMask shared configs (eslint.config.mjs), and tightens Yarn policies (npmMinimalAgeGate,npmPreapprovedPackages, telemetry setting) plus a refreshed.gitignore/.nvmrc.Modernizes GitHub Actions. Splits CI into
prepare/build/lint/testplus a lockfile-regen compatibility test across Node20/22/24, upgrades MetaMask setup actions tov2, switches to the new reusable security scan workflow, adds Dependabot updates for GitHub Actions, and introduces aworkflow_dispatch“Create Release PR” workflow alongside updated release/publish artifact handling.Written by Cursor Bugbot for commit 0b51404. This will update automatically on new commits. Configure here.