|
10 | 10 | "type": "git", |
11 | 11 | "url": "https://github.com/MetaMask/metamask-module-template.git" |
12 | 12 | }, |
| 13 | + "files": [ |
| 14 | + "dist" |
| 15 | + ], |
13 | 16 | "sideEffects": false, |
| 17 | + "main": "./dist/index.cjs", |
| 18 | + "module": "./dist/index.mjs", |
| 19 | + "types": "./dist/index.d.cts", |
14 | 20 | "exports": { |
15 | 21 | ".": { |
16 | 22 | "import": { |
|
24 | 30 | }, |
25 | 31 | "./package.json": "./package.json" |
26 | 32 | }, |
27 | | - "main": "./dist/index.cjs", |
28 | | - "module": "./dist/index.mjs", |
29 | | - "types": "./dist/index.d.cts", |
30 | | - "files": [ |
31 | | - "dist" |
32 | | - ], |
| 33 | + "publishConfig": { |
| 34 | + "access": "public", |
| 35 | + "registry": "https://registry.npmjs.org/" |
| 36 | + }, |
33 | 37 | "scripts": { |
34 | 38 | "build": "ts-bridge --project tsconfig.build.json --clean", |
35 | 39 | "build:docs": "typedoc", |
36 | 40 | "lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog", |
37 | | - "lint:changelog": "auto-changelog validate --prettier", |
| 41 | + "lint:changelog": "auto-changelog validate --formatter oxfmt", |
38 | 42 | "lint:constraints": "yarn constraints", |
39 | 43 | "lint:dependencies": "depcheck && yarn dedupe --check", |
40 | 44 | "lint:dependencies:fix": "depcheck && yarn dedupe", |
41 | 45 | "lint:eslint": "eslint .", |
42 | | - "lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies:fix && yarn lint:changelog", |
43 | | - "lint:misc": "prettier '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern", |
| 46 | + "lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies:fix && yarn lint:changelog --fix", |
| 47 | + "lint:misc": "oxfmt --ignore-path .gitignore", |
44 | 48 | "prepack": "./scripts/prepack.sh", |
45 | 49 | "test": "vitest && attw --pack", |
46 | 50 | "test:watch": "vitest --watch" |
|
49 | 53 | "@arethetypeswrong/cli": "^0.15.3", |
50 | 54 | "@lavamoat/allow-scripts": "^3.0.4", |
51 | 55 | "@lavamoat/preinstall-always-fail": "^2.0.0", |
52 | | - "@metamask/auto-changelog": "^5.3.0", |
| 56 | + "@metamask/auto-changelog": "^6.1.0", |
53 | 57 | "@metamask/eslint-config": "^15.0.0", |
54 | 58 | "@metamask/eslint-config-nodejs": "^15.0.0", |
55 | 59 | "@metamask/eslint-config-typescript": "^15.0.0", |
|
69 | 73 | "eslint-plugin-n": "^17.10.3", |
70 | 74 | "eslint-plugin-prettier": "^5.2.1", |
71 | 75 | "eslint-plugin-promise": "^7.1.0", |
72 | | - "prettier": "^3.3.3", |
73 | | - "prettier-plugin-packagejson": "^2.5.8", |
| 76 | + "oxfmt": "^0.45.0", |
74 | 77 | "ts-node": "^10.7.0", |
75 | 78 | "typedoc": "^0.26.11", |
76 | 79 | "typescript": "~5.7.3", |
77 | 80 | "typescript-eslint": "^8.48.1", |
78 | 81 | "vite": "^8.0.8", |
79 | 82 | "vitest": "^4.1.4" |
80 | 83 | }, |
81 | | - "packageManager": "yarn@4.10.3", |
82 | 84 | "engines": { |
83 | 85 | "node": "^20 || ^22 || >=24" |
84 | 86 | }, |
85 | | - "publishConfig": { |
86 | | - "access": "public", |
87 | | - "registry": "https://registry.npmjs.org/" |
88 | | - }, |
| 87 | + "packageManager": "yarn@4.10.3", |
89 | 88 | "lavamoat": { |
90 | 89 | "allowScripts": { |
91 | 90 | "@lavamoat/preinstall-always-fail": false, |
|
0 commit comments