|
8 | 8 | "type": "git",
|
9 | 9 | "url": "https://github.com/bvaughn/react-error-boundary"
|
10 | 10 | },
|
11 |
| - "source": "src/index.ts", |
12 |
| - "main": "dist/react-error-boundary.js", |
13 |
| - "module": "dist/react-error-boundary.module.js", |
14 |
| - "types": "dist/react-error-boundary.d.ts", |
| 11 | + "main": "dist/react-error-boundary.cjs.js", |
| 12 | + "module": "dist/react-error-boundary.esm.js", |
| 13 | + "exports": { |
| 14 | + ".": { |
| 15 | + "types": { |
| 16 | + "import": "./dist/react-error-boundary.cjs.mjs", |
| 17 | + "default": "./dist/react-error-boundary.cjs.js" |
| 18 | + }, |
| 19 | + "module": "./dist/react-error-boundary.esm.js", |
| 20 | + "import": "./dist/react-error-boundary.cjs.mjs", |
| 21 | + "default": "./dist/react-error-boundary.cjs.js" |
| 22 | + }, |
| 23 | + "./package.json": "./package.json" |
| 24 | + }, |
| 25 | + "types": "dist/react-error-boundary.cjs.d.ts", |
15 | 26 | "files": [
|
16 | 27 | "dist"
|
17 | 28 | ],
|
18 | 29 | "sideEffects": false,
|
19 | 30 | "scripts": {
|
20 |
| - "clear": "npm run clear:parcel-cache & npm run clear:builds & npm run clear:node_modules", |
| 31 | + "clear": "npm run clear:builds & npm run clear:node_modules", |
21 | 32 | "clear:builds": "rm -rf ./dist",
|
22 |
| - "clear:parcel-cache": "rm -rf ./.parcel-cache", |
23 | 33 | "clear:node_modules": "rm -rf ./node_modules",
|
24 |
| - "prerelease": "rm -rf ./.parcel-cache && parcel build", |
| 34 | + "prerelease": "preconstruct build", |
25 | 35 | "prettier": "prettier --write \"**/*.{css,html,js,json,jsx,ts,tsx}\"",
|
26 | 36 | "prettier:ci": "prettier --check \"**/*.{css,html,js,json,jsx,ts,tsx}\"",
|
27 | 37 | "test": "jest",
|
|
33 | 43 | "@babel/runtime": "^7.12.5"
|
34 | 44 | },
|
35 | 45 | "devDependencies": {
|
36 |
| - "@parcel/config-default": "^2.9.0", |
37 |
| - "@parcel/core": "^2.9.0", |
38 |
| - "@parcel/packager-ts": "^2.9.0", |
39 |
| - "@parcel/plugin": "^2.9.0", |
40 |
| - "@parcel/source-map": "^2.1.1", |
41 |
| - "@parcel/transformer-typescript-types": "^2.9.0", |
42 |
| - "@parcel/utils": "^2.9.0", |
| 46 | + "@babel/preset-typescript": "^7.21.5", |
| 47 | + "@preconstruct/cli": "^2.7.0", |
43 | 48 | "@types/jest": "^26.0.15",
|
44 | 49 | "@types/react": "^18",
|
45 | 50 | "@types/react-dom": "^18",
|
46 | 51 | "jest": "^29.4.3",
|
47 | 52 | "jest-environment-jsdom": "^29.4.3",
|
48 |
| - "parcel": "^2.9.0", |
49 | 53 | "prettier": "^2.8.6",
|
50 | 54 | "react": "^18",
|
51 | 55 | "react-dom": "^18",
|
|
62 | 66 | "react/no-did-update-set-state": "off",
|
63 | 67 | "babel/no-unused-expressions": "off"
|
64 | 68 | }
|
| 69 | + }, |
| 70 | + "preconstruct": { |
| 71 | + "exports": { |
| 72 | + "importConditionDefaultExport": "default" |
| 73 | + }, |
| 74 | + "___experimentalFlags_WILL_CHANGE_IN_PATCH": { |
| 75 | + "importsConditions": true |
| 76 | + } |
65 | 77 | }
|
66 | 78 | }
|
0 commit comments