|
3 | 3 | "version": "3.1.1", |
4 | 4 | "description": "Fastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison.", |
5 | 5 | "main": "index.js", |
| 6 | + "typings": "index.d.ts", |
6 | 7 | "scripts": { |
7 | 8 | "preversion": "yarn test", |
8 | 9 | "benchmark": "node benchmark", |
9 | 10 | "eslint": "eslint \"*.js\" benchmark test", |
| 11 | + "tslint": "eslint test/typescript/sample-usage.tsx", |
10 | 12 | "test-browser": "karma start test/browser/karma.conf.js", |
11 | 13 | "test-browser-ie": "karma start test/browser/karma.conf.ie.js", |
12 | 14 | "test-node": "mocha \"test/node/*.spec.js\"", |
13 | 15 | "test-node-cov": "nyc mocha \"test/node/*.spec.js\"", |
14 | | - "test-ts": "tsc --target ES5 --noImplicitAny index.d.ts", |
15 | | - "test": "builder concurrent --buffer eslint test-ts test-node-cov test-browser", |
16 | | - "test-ie": "builder concurrent --buffer eslint test-ts test-node-cov test-browser-ie", |
| 16 | + "test-ts-usage": "tsc --esModuleInterop --jsx react --noEmit test/typescript/sample-usage.tsx", |
| 17 | + "test-ts-defs": "tsc --target ES5 index.d.ts", |
| 18 | + "test": "builder concurrent --buffer eslint tslint test-ts-usage test-ts-defs test-node-cov test-browser", |
| 19 | + "test-ie": "builder concurrent --buffer eslint tslint test-ts-usage test-ts-defs test-node-cov test-browser-ie", |
17 | 20 | "compress": "terser --compress --mangle=\"toplevel:true\" -- index.js", |
18 | 21 | "size-min-gz": "yarn -s compress | gzip -9 | wc -c" |
19 | 22 | }, |
|
40 | 43 | "@babel/preset-env": "^7.7.6", |
41 | 44 | "@testing-library/dom": "^7.5.1", |
42 | 45 | "@testing-library/preact": "^1.0.2", |
| 46 | + "@types/node": "^14.0.1", |
| 47 | + "@types/react": "^16.9.35", |
| 48 | + "@typescript-eslint/parser": "^2.34.0", |
43 | 49 | "babel-loader": "^8.0.6", |
44 | 50 | "benchmark": "^2.1.4", |
45 | 51 | "builder": "^5.0.0", |
46 | 52 | "codecov": "^3.6.5", |
47 | 53 | "core-js": "^3.5.0", |
48 | 54 | "eslint": "^6.7.2", |
| 55 | + "eslint-plugin-react": "^7.20.0", |
49 | 56 | "fast-deep-equal": "3.1.1", |
50 | 57 | "fast-deep-equal-git": "epoberezkin/fast-deep-equal#v3.1.1", |
51 | 58 | "jsdom": "^16.2.2", |
|
0 commit comments