|
4 | 4 | "description": "React Hook Form error message component", |
5 | 5 | "main": "dist/index.js", |
6 | 6 | "module": "dist/index.esm.js", |
7 | | - "umd:main": "dist/index.umd.min.js", |
8 | | - "unpkg": "dist/index.umd.min.js", |
9 | | - "jsdelivr": "dist/index.umd.min.js", |
| 7 | + "umd:main": "dist/index.umd.production.min.js", |
| 8 | + "unpkg": "dist/index.umd.production.min.js", |
| 9 | + "jsdelivr": "dist/index.umd.production.min.js", |
10 | 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 | | - "lint": "eslint '**/*.{js,ts,tsx}'", |
| 22 | + "prebuild": "npm run clean", |
| 23 | + "build": "node rollup/writeCjsEntryFile.js && rollup -c", |
| 24 | + "lint": "eslint '**/*.{js,ts}'", |
23 | 25 | "lint:fix": "npm run lint -- --fix", |
24 | 26 | "lint:types": "tsc --noEmit", |
25 | 27 | "test": "jest --runInBand", |
26 | | - "test:watch": "jest --watch", |
27 | | - "test:coverage": "jest --coverage", |
| 28 | + "test:watch": "npm run test -- --watchAll --coverage", |
28 | 29 | "postversion": "git push && git push origin v$npm_package_version", |
29 | 30 | "prepublishOnly": "npm run lint && npm run lint:types && npm test && npm run build" |
30 | 31 | }, |
|
53 | 54 | "@rollup/plugin-commonjs": "^13.0.0", |
54 | 55 | "@rollup/plugin-json": "^4.1.0", |
55 | 56 | "@rollup/plugin-node-resolve": "^8.0.1", |
| 57 | + "@rollup/plugin-replace": "^2.3.3", |
56 | 58 | "@testing-library/react": "^10.2.1", |
57 | 59 | "@testing-library/react-hooks": "^3.2.1", |
58 | 60 | "@types/jest": "^26.0.0", |
|
0 commit comments