|
14 | 14 | "author": "kumavis", |
15 | 15 | "exports": { |
16 | 16 | ".": { |
17 | | - "import": "./dist/index.mjs", |
18 | | - "require": "./dist/index.js", |
19 | | - "types": "./dist/types/index.d.ts" |
| 17 | + "import": { |
| 18 | + "types": "./dist/index.d.mts", |
| 19 | + "default": "./dist/index.mjs" |
| 20 | + }, |
| 21 | + "require": { |
| 22 | + "types": "./dist/index.d.cts", |
| 23 | + "default": "./dist/index.cjs" |
| 24 | + } |
20 | 25 | }, |
21 | 26 | "./package.json": "./package.json" |
22 | 27 | }, |
23 | | - "main": "./dist/index.js", |
| 28 | + "main": "./dist/index.cjs", |
24 | 29 | "module": "./dist/index.mjs", |
25 | | - "types": "./dist/types/index.d.ts", |
| 30 | + "types": "./dist/index.d.cts", |
26 | 31 | "files": [ |
27 | 32 | "dist" |
28 | 33 | ], |
29 | 34 | "scripts": { |
30 | | - "build": "tsup && yarn build:types", |
| 35 | + "build": "ts-bridge --project tsconfig.build.json --clean", |
31 | 36 | "build:docs": "typedoc", |
32 | | - "build:types": "tsc --project tsconfig.build.json", |
33 | 37 | "generate-vectors": "ts-node scripts/generate-vectors.ts > ./test/vectors/derivation.json", |
34 | 38 | "lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog", |
35 | 39 | "lint:changelog": "auto-changelog validate", |
|
57 | 61 | "@metamask/eslint-config-jest": "^12.0.0", |
58 | 62 | "@metamask/eslint-config-nodejs": "^12.0.0", |
59 | 63 | "@metamask/eslint-config-typescript": "^12.0.0", |
| 64 | + "@ts-bridge/cli": "^0.1.4", |
60 | 65 | "@types/jest": "^28.1.6", |
61 | 66 | "@types/node": "^16.18.38", |
62 | 67 | "@typescript-eslint/eslint-plugin": "^5.43.0", |
|
76 | 81 | "prettier-plugin-packagejson": "^2.3.0", |
77 | 82 | "ts-jest": "^28.0.7", |
78 | 83 | "ts-node": "^10.9.1", |
79 | | - "tsup": "^7.2.0", |
80 | 84 | "typedoc": "^0.23.19", |
81 | 85 | "typescript": "~4.8.4" |
82 | 86 | }, |
|
90 | 94 | }, |
91 | 95 | "lavamoat": { |
92 | 96 | "allowScripts": { |
93 | | - "@lavamoat/preinstall-always-fail": false, |
94 | | - "tsup>esbuild": true |
| 97 | + "@lavamoat/preinstall-always-fail": false |
95 | 98 | } |
96 | 99 | } |
97 | 100 | } |
0 commit comments