|
32 | 32 | "test:format": "yarn prettier --check", |
33 | 33 | "test:types": "tsc", |
34 | 34 | "test:eslint": "eslint --ext .ts,.tsx ./src", |
| 35 | + "test:size": "yarn build:umd && bundlewatch", |
35 | 36 | "build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types", |
36 | 37 | "build:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib", |
37 | 38 | "build:es": "rimraf ./es && babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es", |
|
46 | 47 | "prettier": "prettier \"{.,src,src/**,example/src,example/src/**,types}/*.{md,js,jsx,ts,tsx,json}\"", |
47 | 48 | "start": "yarn watch", |
48 | 49 | "format": "yarn prettier --write", |
49 | | - "stats": "open ./stats.html", |
50 | | - "build-size": "yarn build:umd" |
| 50 | + "stats": "open ./stats.html" |
51 | 51 | }, |
52 | 52 | "files": [ |
53 | 53 | "core", |
|
91 | 91 | "@babel/preset-react": "^7.10.4", |
92 | 92 | "@babel/preset-typescript": "^7.10.4", |
93 | 93 | "@rollup/plugin-replace": "^2.3.3", |
94 | | - "@size-limit/file": "^6.0.3", |
95 | 94 | "@svgr/rollup": "^5.4.0", |
96 | 95 | "@testing-library/react": "^10.4.7", |
97 | 96 | "@testing-library/jest-dom": "^5.14.1", |
|
104 | 103 | "babel-jest": "^26.0.1", |
105 | 104 | "babel-plugin-const-enum": "^1.0.1", |
106 | 105 | "babel-plugin-transform-async-to-promises": "^0.8.15", |
| 106 | + "bundlewatch": "^0.3.2", |
107 | 107 | "cross-env": "^7.0.2", |
108 | 108 | "eslint": "7.x", |
109 | 109 | "eslint-config-prettier": "^6.11.0", |
|
137 | 137 | "rollup-plugin-size": "^0.2.2", |
138 | 138 | "rollup-plugin-terser": "^6.1.0", |
139 | 139 | "rollup-plugin-visualizer": "^4.0.4", |
140 | | - "size-limit": "^6.0.3", |
141 | 140 | "type-fest": "^0.21.0", |
142 | 141 | "typescript": "^4.1.2" |
143 | 142 | }, |
144 | 143 | "resolutions": { |
145 | 144 | "@types/react": "^16.9.41", |
146 | 145 | "@types/react-dom": "^16.9.8" |
147 | 146 | }, |
148 | | - "size-limit": [ |
149 | | - { |
150 | | - "path": "dist/*.production.min.js" |
151 | | - } |
152 | | - ] |
| 147 | + "bundlewatch": { |
| 148 | + "files": [ |
| 149 | + { |
| 150 | + "path": "dist/*.production.min.js" |
| 151 | + } |
| 152 | + ] |
| 153 | + } |
153 | 154 | } |
0 commit comments