|
18 | 18 | "sideEffects": false, |
19 | 19 | "exports": { |
20 | 20 | ".": { |
21 | | - "import": "./dist/index.mjs", |
22 | | - "require": "./dist/index.js", |
23 | | - "types": "./dist/types/index.d.ts" |
| 21 | + "import": { |
| 22 | + "types": "./dist/index.d.mts", |
| 23 | + "default": "./dist/index.mjs" |
| 24 | + }, |
| 25 | + "require": { |
| 26 | + "types": "./dist/index.d.cts", |
| 27 | + "default": "./dist/index.cjs" |
| 28 | + } |
24 | 29 | }, |
25 | 30 | "./package.json": "./package.json" |
26 | 31 | }, |
27 | | - "main": "./dist/index.js", |
28 | | - "types": "./dist/types/index.d.ts", |
| 32 | + "main": "./dist/index.cjs", |
| 33 | + "types": "./dist/index.d.cts", |
29 | 34 | "files": [ |
30 | 35 | "dist/" |
31 | 36 | ], |
32 | 37 | "scripts": { |
33 | 38 | "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references", |
34 | 39 | "build:docs": "typedoc", |
| 40 | + "changelog:update": "../../scripts/update-changelog.sh PACKAGE_NAME", |
35 | 41 | "changelog:validate": "../../scripts/validate-changelog.sh PACKAGE_NAME", |
| 42 | + "since-latest-release": "../../scripts/since-latest-release.sh", |
36 | 43 | "publish:preview": "yarn npm publish --tag preview", |
37 | | - "test": "jest --reporters=jest-silent-reporter", |
38 | | - "test:clean": "jest --clearCache", |
39 | | - "test:verbose": "jest --verbose", |
40 | | - "test:watch": "jest --watch" |
| 44 | + "test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter", |
| 45 | + "test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache", |
| 46 | + "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose", |
| 47 | + "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch" |
41 | 48 | }, |
42 | 49 | "devDependencies": { |
43 | 50 | "@metamask/auto-changelog": "^3.4.4", |
|
0 commit comments