|
20 | 20 | "add-contributor": "kcd-scripts contributors add", |
21 | 21 | "build": "kcd-scripts build --bundle --no-clean --size-snapshot", |
22 | 22 | "lint": "kcd-scripts lint", |
| 23 | + "bundlesize": "bundlesize", |
23 | 24 | "test": "kcd-scripts test", |
24 | 25 | "test:cover": "kcd-scripts test --coverage", |
25 | 26 | "test:update": "npm test -- --updateSnapshot --coverage", |
26 | | - "test:build": "jest --projects other/misc-tests", |
| 27 | + "test:build": "jest --projects other/misc-tests && npm run bundlesize", |
27 | 28 | "flowgen": "flowgen typings/index.d.ts -o flow-typed/npm/react-render-callback_v1.x.x.js.flow", |
28 | 29 | "build-and-test": "npm run build -s && npm run test:build -s", |
29 | 30 | "validate": "kcd-scripts validate lint,test:cover,build-and-test", |
|
45 | 46 | "@types/react": "^0.14 || ^15 || ^16", |
46 | 47 | "ajv": "^6.5.3", |
47 | 48 | "babel-plugin-dynamic-import-node": "^2.1.0", |
| 49 | + "bundlesize": "^0.17.0", |
48 | 50 | "flowgen": "^1.2.2", |
49 | 51 | "kcd-scripts": "^0.44.0", |
50 | 52 | "react": "^0.14 || ^15 || ^16", |
|
65 | 67 | "flow-typed", |
66 | 68 | "typings" |
67 | 69 | ], |
| 70 | + "bundlesize": [ |
| 71 | + { |
| 72 | + "path": "dist/react-render-callback.umd.min.js", |
| 73 | + "maxSize": "650 B" |
| 74 | + } |
| 75 | + ], |
68 | 76 | "keywords": [ |
69 | 77 | "react", |
70 | 78 | "render-prop", |
|
0 commit comments