{ "name": "@metamask/core-monorepo", "version": "1469.0.0", "private": true, "description": "Monorepo for packages shared between MetaMask clients", "repository": { "type": "git", "url": "https://github.com/MetaMask/core.git" }, "workspaces": [ "examples/*", "packages/*" ], "files": [], "type": "module", "scripts": { "build": "yarn tsc --build tsconfig.build.json --verbose", "build:clean": "yarn build:only-clean && yarn build", "build:docs": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run build:docs", "build:only-clean": "rimraf -g 'packages/*/dist' 'packages/*/tsconfig.build.tsbuildinfo'", "build:types": "tsc --build tsconfig.build.json --verbose", "changelog:merge": "node --import ./scripts/resolver/register.ts scripts/merge-changelog-conflicts.ts", "changelog:update": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run changelog:update", "changelog:validate": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run changelog:validate", "changelog:validate:all": "scripts/validate-changelog.sh", "close-stale-release-prs": "node --import ./scripts/resolver/register.ts scripts/close-stale-release-prs.ts", "codeowners:check": "node --import ./scripts/resolver/register.ts scripts/manage-codeowners.ts check", "codeowners:generate": "node --import ./scripts/resolver/register.ts scripts/manage-codeowners.ts generate", "create-codeownership-summary": "node scripts/create-codeownership-summary.ts", "create-package": "node --import ./scripts/resolver/register.ts scripts/create-package/index.ts", "create-release-branch": "create-release-branch --formatter oxfmt", "docs:platform-api:build": "yarn workspace @metamask/platform-api-docs cli ../.. --build --project-label Core", "docs:platform-api:dev": "yarn workspace @metamask/platform-api-docs cli ../.. --dev --project-label Core", "docs:platform-api:serve": "yarn workspace @metamask/platform-api-docs cli ../.. --serve --project-label Core", "get-changed-workspaces": "node scripts/get-changed-workspaces.ts", "lint": "yarn lint:tsc:check && yarn lint:oxlint && echo && yarn lint:misc --check && yarn constraints && yarn lint:dependencies && yarn messenger-action-types:check && yarn readme-content:check && yarn lint:tsconfigs:all && yarn codeowners:check", "lint:dependencies": "knip --config knip.config.mts --dependencies && yarn dedupe --check", "lint:dependencies:fix": "knip --config knip.config.mts --dependencies && yarn dedupe", "lint:fix": "yarn lint:oxlint --fix --prune-suppressions && echo && yarn lint:misc --write && yarn constraints --fix && yarn lint:dependencies:fix && yarn messenger-action-types:generate && yarn readme-content:update && yarn codeowners:generate", "lint:misc": "oxfmt --ignore-path .gitignore", "lint:misc:check": "yarn lint:misc --check", "lint:oxlint": "oxlint", "lint:tsc": "tsc --build tsconfig.lint.json", "lint:tsc:check": "node --import ./scripts/resolver/register.ts scripts/lint-tsc.ts", "lint:tsc:clean": "yarn lint:tsc:only-clean && yarn lint:tsc", "lint:tsc:only-clean": "rimraf -g 'packages/*/.tsc-lint-cache' '.tsc-lint-cache'", "lint:tsc:prune": "node --import ./scripts/resolver/register.ts scripts/lint-tsc.ts --prune-suppressions", "lint:tsc:suppress": "node --import ./scripts/resolver/register.ts scripts/lint-tsc.ts --suppress-all", "lint:tsconfigs": "node --import ./scripts/resolver/register.ts scripts/lint-tsconfigs/lint-tsconfigs.ts", "lint:tsconfigs:all": "node --import ./scripts/resolver/register.ts scripts/lint-tsconfigs/lint-tsconfigs.ts --all", "lint:tsconfigs:fix": "node --import ./scripts/resolver/register.ts scripts/lint-tsconfigs/lint-tsconfigs.ts --fix", "lint:tsconfigs:fix:all": "node --import ./scripts/resolver/register.ts scripts/lint-tsconfigs/lint-tsconfigs.ts --all --fix", "messenger-action-types:check": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run messenger-action-types:check", "messenger-action-types:generate": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run messenger-action-types:generate", "postinstall": "yarn skills:postinstall", "prepack": "./scripts/prepack.sh", "prepare-preview-builds": "./scripts/prepare-preview-builds.sh", "readme-content:check": "node scripts/update-readme-content.ts --check", "readme-content:update": "node scripts/update-readme-content.ts", "setup": "yarn install", "skills": "metamask-skills sync", "skills:postinstall": "metamask-skills postinstall", "test": "yarn test:scripts --silent && yarn test:scripts:shell && yarn test:packages", "test:clean": "yarn workspaces foreach --all --parallel --verbose run test:clean && yarn test", "test:packages": "vitest --silent", "test:scripts": "vitest --config ./vitest.config.scripts.ts", "test:scripts:shell": "node_modules/bats/bin/bats scripts/*.bats", "test:verbose": "vitest --reporter=verbose", "workspaces:list-versions": "./scripts/list-workspace-versions.sh" }, "devDependencies": { "@actions/core": "^3.0.1", "@actions/github": "^9.1.1", "@lavamoat/allow-scripts": "^5.1.0", "@lavamoat/preinstall-always-fail": "^3.0.1", "@metamask/auto-changelog": "^7.1.0", "@metamask/create-release-branch": "^4.2.4", "@metamask/error-utils": "^0.1.0", "@metamask/network-controller": "^38.0.1", "@metamask/node-utils": "^0.1.0", "@metamask/oxlint-config": "^0.2.0", "@metamask/oxlint-config-commonjs": "^0.2.0", "@metamask/oxlint-config-nodejs": "^0.2.0", "@metamask/oxlint-config-typescript": "^0.2.0", "@metamask/oxlint-config-vitest": "^0.2.0", "@metamask/skills": "^0.3.1", "@metamask/type-utils": "^0.1.0", "@types/lodash": "^4.17.27", "@types/node": "^22.13.14", "@types/semver": "^7.8.0", "@typescript/native": "npm:typescript@^7.0.2", "@vitest/coverage-v8": "5.1.2", "@yarnpkg/cli": "^4.19.0", "@yarnpkg/core": "^4.9.3", "@yarnpkg/fslib": "^3.1.5", "@yarnpkg/parsers": "^3.0.3", "@yarnpkg/types": "^4.0.1", "async-mutex": "^0.5.0", "bats": "^1.13.0", "comment-json": "^4.6.2", "eslint-plugin-n": "^18.6.0", "execa": "^10.2.1", "ignore": "^7.0.17", "knip": "^6.48.0", "lodash": "^4.18.1", "nock": "15.0.5", "outdent": "^0.8.0", "oxfmt": "^0.72.0", "oxlint": "^1.85.0", "oxlint-tsgolint": "^7.0.2002", "prettier": "^3.10.1", "rimraf": "^6.1.4", "semver": "^7.8.6", "simple-git-hooks": "^2.14.0", "typescript": "npm:@typescript/typescript6@^6.0.2", "vite": "^8.4.0", "vitest": "5.1.2", "yargs": "^18.2.0" }, "resolutions": { "@typescript/old": "patch:typescript@npm%3A6.0.3#~/.yarn/patches/typescript-npm-6.0.3-585eecd158.patch", "@yarnpkg/core": "4.9.3" }, "simple-git-hooks": { "pre-push": "yarn lint" }, "engines": { "node": "^22.14.0 || ^24 || ^26" }, "packageManager": "yarn@4.17.1+sha256.471ffb15e0523663865bbf46a69e7d157ecf532412eb436c48dfab6e3f2abe88", "lavamoat": { "allowScripts": { "$root$": true, "@keystonehq/bc-ur-registry-eth>hdkey>secp256k1": true, "@lavamoat/preinstall-always-fail": false, "vite>esbuild": false, "simple-git-hooks": false, "@metamask/network-controller>@metamask/config-registry-controller>@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography>keccak": false, "@metamask/network-controller>@metamask/config-registry-controller>@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography>secp256k1": false } } }