|
2 | 2 | "name": "@hookform/error-message", |
3 | 3 | "version": "0.0.4", |
4 | 4 | "description": "React Hook Form error message component", |
| 5 | + "source": "src/index.ts", |
5 | 6 | "main": "dist/index.js", |
6 | 7 | "module": "dist/index.esm.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", |
| 8 | + "esmodule": "dist/index.modern.js", |
10 | 9 | "jsnext:main": "dist/index.esm.js", |
11 | | - "source": "src/index.ts", |
| 10 | + "unpkg": "dist/index.umd.js", |
| 11 | + "umd:main": "dist/index.umd.js", |
| 12 | + "jsdelivr": "dist/index.umd.js", |
12 | 13 | "types": "dist/index.d.ts", |
13 | 14 | "sideEffects": false, |
14 | 15 | "files": [ |
|
17 | 18 | "publishConfig": { |
18 | 19 | "access": "public" |
19 | 20 | }, |
| 21 | + "size-limit": [ |
| 22 | + { |
| 23 | + "path": "dist/index.js", |
| 24 | + "limit": "264 B" |
| 25 | + }, |
| 26 | + { |
| 27 | + "path": "dist/index.esm.js", |
| 28 | + "limit": "288 B" |
| 29 | + }, |
| 30 | + { |
| 31 | + "path": "dist/index.umd.js", |
| 32 | + "limit": "270 B" |
| 33 | + } |
| 34 | + ], |
20 | 35 | "scripts": { |
21 | 36 | "clean": "rimraf dist", |
22 | 37 | "prebuild": "npm run clean", |
23 | | - "build": "node rollup/writeCjsEntryFile.js && rollup -c", |
| 38 | + "build": "microbundle build --jsx React.createElement", |
24 | 39 | "lint": "eslint '**/*.{js,ts}'", |
25 | 40 | "lint:fix": "npm run lint -- --fix", |
26 | 41 | "lint:types": "tsc --noEmit", |
|
51 | 66 | }, |
52 | 67 | "homepage": "https://react-hook-form.com", |
53 | 68 | "devDependencies": { |
54 | | - "@rollup/plugin-commonjs": "^13.0.0", |
55 | | - "@rollup/plugin-json": "^4.1.0", |
56 | | - "@rollup/plugin-node-resolve": "^8.0.1", |
57 | | - "@rollup/plugin-replace": "^2.3.3", |
58 | | - "@testing-library/react": "^10.2.1", |
59 | | - "@testing-library/react-hooks": "^3.2.1", |
60 | | - "@types/jest": "^26.0.0", |
61 | | - "@types/react": "^16.9.0", |
62 | | - "@types/react-dom": "^16.9.4", |
63 | | - "@types/react-test-renderer": "^16.9.0", |
64 | | - "@typescript-eslint/eslint-plugin": "^3.2.0", |
65 | | - "@typescript-eslint/parser": "^3.2.0", |
66 | | - "eslint": "^7.2.0", |
67 | | - "eslint-config-prettier": "^6.11.0", |
68 | | - "eslint-plugin-prettier": "^3.1.3", |
69 | | - "eslint-plugin-react": "^7.13.0", |
70 | | - "eslint-plugin-react-hooks": "^4.0.4", |
71 | | - "husky": "^4.2.5", |
72 | | - "jest": "^26.0.1", |
73 | | - "lint-staged": "^10.2.2", |
74 | | - "prettier": "^2.0.5", |
75 | | - "react": "^16.9.0", |
76 | | - "react-dom": "^16.9.0", |
77 | | - "react-hook-form": "^6.7.0", |
78 | | - "react-test-renderer": "^16.9.0", |
| 69 | + "@size-limit/preset-small-lib": "^4.9.0", |
| 70 | + "@testing-library/react": "^11.2.2", |
| 71 | + "@testing-library/react-hooks": "^3.4.2", |
| 72 | + "@types/jest": "^26.0.15", |
| 73 | + "@types/react": "^17.0.0", |
| 74 | + "@types/react-dom": "^17.0.0", |
| 75 | + "@types/react-test-renderer": "^17.0.0", |
| 76 | + "@typescript-eslint/eslint-plugin": "^4.8.1", |
| 77 | + "@typescript-eslint/parser": "^4.8.1", |
| 78 | + "eslint": "^7.14.0", |
| 79 | + "eslint-config-prettier": "^6.15.0", |
| 80 | + "eslint-plugin-prettier": "^3.1.4", |
| 81 | + "eslint-plugin-react": "^7.21.5", |
| 82 | + "eslint-plugin-react-hooks": "^4.2.0", |
| 83 | + "husky": "^4.3.0", |
| 84 | + "jest": "^26.6.3", |
| 85 | + "lint-staged": "^10.5.1", |
| 86 | + "microbundle": "^0.12.4", |
| 87 | + "prettier": "^2.2.0", |
| 88 | + "react": "^17.0.1", |
| 89 | + "react-dom": "^17.0.1", |
| 90 | + "react-hook-form": "^6.11.4", |
| 91 | + "react-test-renderer": "^17.0.1", |
79 | 92 | "rimraf": "^3.0.2", |
80 | | - "rollup": "^2.15.0", |
81 | | - "rollup-plugin-peer-deps-external": "^2.2.2", |
82 | | - "rollup-plugin-sourcemaps": "^0.6.2", |
83 | | - "rollup-plugin-terser": "^6.1.0", |
84 | | - "rollup-plugin-typescript2": "^0.27.1", |
85 | | - "ts-jest": "^26.1.0", |
86 | | - "typescript": "^3.7.2" |
| 93 | + "size-limit": "^4.9.0", |
| 94 | + "ts-jest": "^26.4.4", |
| 95 | + "typescript": "^4.1.2" |
87 | 96 | }, |
88 | 97 | "peerDependencies": { |
89 | 98 | "react": ">=16.8.0", |
|
100 | 109 | "npm run lint:fix" |
101 | 110 | ], |
102 | 111 | "*.{md,json}": [ |
103 | | - "prettier --write", |
104 | | - "git add" |
| 112 | + "prettier --write" |
105 | 113 | ] |
106 | 114 | } |
107 | 115 | } |
0 commit comments