|
4 | 4 | "description": "React Hook Form dev tool to help debugging forms", |
5 | 5 | "main": "dist/index.js", |
6 | 6 | "module": "dist/index.esm.js", |
7 | | - "jsnext:main": "index.esm.js", |
8 | | - "umd:main": "dist/index.umd.min.js", |
9 | | - "unpkg": "dist/index.umd.min.js", |
10 | | - "jsdelivr": "dist/index.umd.min.js", |
| 7 | + "umd:main": "dist/index.umd.development.js", |
| 8 | + "unpkg": "dist/index.umd.development.js", |
| 9 | + "jsdelivr": "dist/index.umd.development.js", |
| 10 | + "jsnext:main": "dist/index.esm.js", |
| 11 | + "source": "src/index.tsx", |
11 | 12 | "types": "dist/index.d.ts", |
12 | 13 | "sideEffects": false, |
13 | 14 | "files": [ |
|
18 | 19 | }, |
19 | 20 | "scripts": { |
20 | 21 | "clean": "rimraf dist", |
21 | | - "build": "npm run clean && rollup -c", |
| 22 | + "prebuild": "npm run clean", |
| 23 | + "build": "node rollup/writeCjsEntryFile.js && rollup -c", |
22 | 24 | "lint": "eslint '**/*.{js,ts,tsx}'", |
23 | 25 | "lint:fix": "npm run lint -- --fix", |
24 | 26 | "lint:types": "tsc --noEmit", |
|
62 | 64 | "@rollup/plugin-commonjs": "^13.0.0", |
63 | 65 | "@rollup/plugin-json": "^4.1.0", |
64 | 66 | "@rollup/plugin-node-resolve": "^8.1.0", |
| 67 | + "@rollup/plugin-replace": "^2.3.3", |
65 | 68 | "@testing-library/react": "^10.0.4", |
66 | 69 | "@types/jest": "^25.2.3", |
67 | 70 | "@types/react": "^16.9.35", |
|
78 | 81 | "prettier": "^2.0.5", |
79 | 82 | "react": "^16.13.1", |
80 | 83 | "react-dom": "^16.13.1", |
81 | | - "react-hook-form": "^5.7.2", |
| 84 | + "react-hook-form": "^6.0.0", |
82 | 85 | "rimraf": "^3.0.2", |
83 | 86 | "rollup": "^2.10.7", |
84 | 87 | "rollup-plugin-peer-deps-external": "^2.2.2", |
|
0 commit comments