|
17 | 17 | "url": "https://github.com/MetaMask/rpc-errors.git" |
18 | 18 | }, |
19 | 19 | "license": "MIT", |
20 | | - "author": "Erik Marks <[email protected]>", |
| 20 | + "sideEffects": false, |
21 | 21 | "exports": { |
22 | 22 | ".": { |
23 | | - "import": "./dist/index.mjs", |
24 | | - "require": "./dist/index.js", |
25 | | - "types": "./dist/types/index.d.ts" |
| 23 | + "import": { |
| 24 | + "types": "./dist/index.d.mts", |
| 25 | + "default": "./dist/index.mjs" |
| 26 | + }, |
| 27 | + "require": { |
| 28 | + "types": "./dist/index.d.cts", |
| 29 | + "default": "./dist/index.cjs" |
| 30 | + } |
26 | 31 | }, |
27 | 32 | "./package.json": "./package.json" |
28 | 33 | }, |
29 | | - "main": "./dist/index.js", |
| 34 | + "main": "./dist/index.cjs", |
30 | 35 | "module": "./dist/index.mjs", |
31 | | - "types": "./dist/types/index.d.ts", |
| 36 | + "types": "./dist/index.d.cts", |
32 | 37 | "files": [ |
33 | 38 | "dist" |
34 | 39 | ], |
35 | 40 | "scripts": { |
36 | | - "build": "tsup --clean && yarn build:types", |
37 | | - "build:clean": "rimraf dist && yarn build", |
| 41 | + "build": "ts-bridge --project tsconfig.build.json --clean", |
38 | 42 | "build:docs": "typedoc", |
39 | | - "build:types": "tsc --project tsconfig.build.json", |
40 | 43 | "lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog", |
41 | 44 | "lint:changelog": "auto-changelog validate --prettier", |
42 | 45 | "lint:constraints": "yarn constraints", |
|
60 | 63 | "@metamask/eslint-config-jest": "^12.1.0", |
61 | 64 | "@metamask/eslint-config-nodejs": "^12.1.0", |
62 | 65 | "@metamask/eslint-config-typescript": "^12.1.0", |
| 66 | + "@ts-bridge/cli": "^0.5.1", |
63 | 67 | "@types/jest": "^28.1.6", |
64 | 68 | "@types/node": "^16", |
65 | 69 | "@typescript-eslint/eslint-plugin": "^5.43.0", |
|
79 | 83 | "prettier-plugin-packagejson": "^2.3.0", |
80 | 84 | "ts-jest": "^28.0.7", |
81 | 85 | "ts-node": "^10.7.0", |
82 | | - "tsup": "^7.2.0", |
83 | 86 | "typedoc": "^0.23.28", |
84 | 87 | "typescript": "~4.9.5" |
85 | 88 | }, |
|
93 | 96 | }, |
94 | 97 | "lavamoat": { |
95 | 98 | "allowScripts": { |
96 | | - "@lavamoat/preinstall-always-fail": false, |
97 | | - "tsup>esbuild": false |
| 99 | + "@lavamoat/preinstall-always-fail": false |
98 | 100 | } |
99 | 101 | } |
100 | 102 | } |
0 commit comments