|
1 | 1 | {
|
2 | 2 | "name": "react-error-boundary",
|
3 | 3 | "version": "5.0.0",
|
| 4 | + "type": "module", |
4 | 5 | "description": "Simple reusable React error boundary component",
|
5 | 6 | "author": "Brian Vaughn <brian.david.vaughn@gmail.com>",
|
6 | 7 | "license": "MIT",
|
|
9 | 10 | "url": "https://github.com/bvaughn/react-error-boundary"
|
10 | 11 | },
|
11 | 12 | "packageManager": "pnpm@9.6.0",
|
12 |
| - "main": "dist/react-error-boundary.cjs.js", |
13 |
| - "module": "dist/react-error-boundary.esm.js", |
14 | 13 | "exports": {
|
15 | 14 | ".": {
|
16 |
| - "types": { |
17 |
| - "import": "./dist/react-error-boundary.cjs.mjs", |
18 |
| - "default": "./dist/react-error-boundary.cjs.js" |
19 |
| - }, |
20 |
| - "development": { |
21 |
| - "module": "./dist/react-error-boundary.development.esm.js", |
22 |
| - "import": "./dist/react-error-boundary.development.cjs.mjs", |
23 |
| - "default": "./dist/react-error-boundary.development.cjs.js" |
24 |
| - }, |
25 |
| - "module": "./dist/react-error-boundary.esm.js", |
26 |
| - "import": "./dist/react-error-boundary.cjs.mjs", |
27 |
| - "default": "./dist/react-error-boundary.cjs.js" |
| 15 | + "types": "./dist/react-error-boundary.js", |
| 16 | + "development": "./dist/react-error-boundary.development.js", |
| 17 | + "default": "./dist/react-error-boundary.js" |
28 | 18 | },
|
29 | 19 | "./package.json": "./package.json"
|
30 | 20 | },
|
|
34 | 24 | "default": "./src/env-conditions/production.ts"
|
35 | 25 | }
|
36 | 26 | },
|
37 |
| - "types": "dist/react-error-boundary.cjs.d.ts", |
| 27 | + "types": "dist/react-error-boundary.d.ts", |
38 | 28 | "files": [
|
39 | 29 | "dist"
|
40 | 30 | ],
|
|
46 | 36 | "prerelease": "preconstruct build",
|
47 | 37 | "lint": "eslint .",
|
48 | 38 | "lint:fix": "eslint . --fix",
|
49 |
| - "test": "jest", |
50 |
| - "test:watch": "jest --watch", |
| 39 | + "test": "vitest --environment=jsdom --watch=false", |
| 40 | + "test:watch": "vitest --environment=jsdom --watch", |
51 | 41 | "typescript": "tsc --noEmit",
|
52 | 42 | "typescript:watch": "tsc --noEmit --watch"
|
53 | 43 | },
|
|
57 | 47 | "devDependencies": {
|
58 | 48 | "@babel/preset-env": "^7.22.5",
|
59 | 49 | "@babel/preset-typescript": "^7.21.5",
|
60 |
| - "@preconstruct/cli": "^2.8.1", |
| 50 | + "@preconstruct/cli": "^2.8.12", |
61 | 51 | "@types/assert": "^1.5.10",
|
62 |
| - "@types/jest": "^26.0.15", |
63 | 52 | "@types/react": "^18.3.17",
|
64 | 53 | "@types/react-dom": "^18",
|
65 | 54 | "assert": "^2.0.0",
|
|
69 | 58 | "eslint-plugin-prettier": "^5.2.1",
|
70 | 59 | "eslint-plugin-react": "^7.37.2",
|
71 | 60 | "globals": "^15.11.0",
|
72 |
| - "jest": "^29.4.3", |
73 |
| - "jest-environment-jsdom": "^29.4.3", |
74 | 61 | "prettier": "^3.0.1",
|
75 | 62 | "react": "^18",
|
76 | 63 | "react-dom": "^18",
|
77 | 64 | "rimraf": "^6.0.1",
|
78 |
| - "ts-jest": "^29.0.5", |
79 |
| - "typescript": "^5.1.6", |
| 65 | + "vitest": "^3.1.2", |
| 66 | + "typescript": "^5.8.3", |
80 | 67 | "typescript-eslint": "^8.18.0"
|
81 | 68 | },
|
82 | 69 | "peerDependencies": {
|
|
87 | 74 | "importConditionDefaultExport": "default"
|
88 | 75 | },
|
89 | 76 | "___experimentalFlags_WILL_CHANGE_IN_PATCH": {
|
90 |
| - "importsConditions": true |
| 77 | + "distInRoot": true, |
| 78 | + "importsConditions": true, |
| 79 | + "typeModule": true |
91 | 80 | }
|
92 | 81 | }
|
93 | 82 | }
|
0 commit comments