Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
139 lines (139 loc) · 7.62 KB
/
Copy pathpackage.json
File metadata and controls
139 lines (139 loc) · 7.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"name": "@metamask/core-monorepo",
"version": "1375.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",
"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-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 lint:teams && 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:teams": "node --import ./scripts/resolver/register.ts scripts/lint-teams-json.ts",
"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 --coverage.enabled=false --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 --coverage.enabled=false",
"test:scripts": "vitest --config ./vitest.config.scripts.ts",
"test:scripts:shell": "node_modules/bats/bin/bats scripts/*.bats",
"test:verbose": "vitest --reporter=verbose --coverage.enabled=false",
"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.0",
"@metamask/auto-changelog": "^6.2.1",
"@metamask/create-release-branch": "^4.2.2",
"@metamask/error-utils": "^0.1.0",
"@metamask/network-controller": "^37.1.1",
"@metamask/node-utils": "^0.1.0",
"@metamask/oxlint-config": "^0.1.1",
"@metamask/oxlint-config-commonjs": "^0.1.1",
"@metamask/oxlint-config-nodejs": "^0.1.1",
"@metamask/oxlint-config-typescript": "^0.1.1",
"@metamask/oxlint-config-vitest": "^0.1.1",
"@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-istanbul": "^5.0.5",
"@yarnpkg/cli": "^4.18.1",
"@yarnpkg/core": "^4.9.0",
"@yarnpkg/fslib": "^3.1.5",
"@yarnpkg/parsers": "^3.0.3",
"@yarnpkg/types": "^4.0.0",
"async-mutex": "^0.5.0",
"bats": "^1.13.0",
"comment-json": "^4.6.2",
"eslint-plugin-n": "^18.3.0",
"execa": "^10.0.1",
"knip": "^6.39.0",
"lodash": "^4.18.1",
"nock": "^15.0.5",
"oxfmt": "^0.72.0",
"oxlint": "^1.85.0",
"oxlint-tsgolint": "^7.0.2002",
"prettier": "^3.9.9",
"rimraf": "^6.1.3",
"semver": "^7.8.5",
"simple-git-hooks": "^2.14.0",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vite": "^8.0.8",
"vitest": "^5.0.0",
"yargs": "^17.7.3"
},
"resolutions": {
"@typescript/old": "patch:typescript@npm%3A6.0.3#~/.yarn/patches/typescript-npm-6.0.3-585eecd158.patch",
"@yarnpkg/core": "4.9.1"
},
"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
}
}
}