|
5 | 5 | "author": "tannerlinsley", |
6 | 6 | "license": "MIT", |
7 | 7 | "repository": "react-tools/react-charts", |
8 | | - "main": "dist/index.js", |
9 | | - "_module": "dist/index.es.js", |
10 | | - "_jsnext:main": "dist/index.es.js", |
| 8 | + "main": "index.js", |
| 9 | + "module": "dist/react-charts.mjs", |
11 | 10 | "scripts": { |
12 | | - "test": "cross-env CI=1 react-scripts test --env=jsdom", |
13 | | - "test:watch": "react-scripts test --env=jsdom", |
14 | | - "build": "rollup -c", |
15 | | - "start": "rollup -c -w", |
| 11 | + "test": "is-ci \"test:ci\" \"test:dev\"", |
| 12 | + "test:dev": "jest --watch", |
| 13 | + "test:ci": "jest", |
| 14 | + "test:coverage": "yarn test:ci; open coverage/lcov-report/index.html", |
| 15 | + "build-d3": "rollup -c src/d3/rollup.config.js", |
| 16 | + "build": "yarn build-d3 && NODE_ENV=production rollup -c", |
| 17 | + "now-build": "yarn && cd www && yarn && yarn build", |
| 18 | + "start": "yarn build-d3 && rollup -c -w", |
| 19 | + "prepare": "yarn build", |
| 20 | + "prepublishOnly": "yarn test:ci", |
16 | 21 | "release": "yarn publish", |
17 | 22 | "releaseNext": "yarn publish --tag next", |
18 | | - "prettier": "prettier src/**/*.js --write" |
| 23 | + "format": "prettier {src,src/**,example/src,example/src/**}/*.{md,js,jsx,tsx} --write", |
| 24 | + "doctoc": "npx doctoc --maxlevel 2 README.md" |
19 | 25 | }, |
| 26 | + "files": [ |
| 27 | + "dist" |
| 28 | + ], |
20 | 29 | "peerDependencies": { |
21 | | - "prop-types": "^15.5.4", |
22 | 30 | "react": "^16.6.3" |
23 | 31 | }, |
24 | 32 | "dependencies": { |
25 | | - "@reach/observe-rect": "^1.0.3", |
26 | | - "d3-delaunay": "^5.1.6", |
27 | | - "d3-scale": "^3.2.0", |
| 33 | + "@reach/observe-rect": "^1.1.0", |
| 34 | + "d3-delaunay": "^5.2.1", |
| 35 | + "d3-scale": "^3.2.1", |
28 | 36 | "d3-shape": "^1.3.7", |
29 | | - "d3-voronoi": "^1.1.2", |
30 | | - "raf": "^3.4.1" |
| 37 | + "d3-voronoi": "^1.1.2" |
31 | 38 | }, |
32 | 39 | "devDependencies": { |
33 | | - "@babel/plugin-proposal-class-properties": "^7.7.0", |
34 | | - "@babel/preset-env": "^7.7.1", |
35 | | - "@babel/preset-react": "^7.7.0", |
36 | | - "@svgr/rollup": "^4.3.3", |
| 40 | + "@babel/preset-env": "^7.9.0", |
| 41 | + "@babel/preset-react": "^7.9.4", |
| 42 | + "@rollup/plugin-node-resolve": "^7.1.1", |
| 43 | + "@svgr/rollup": "^5.3.0", |
37 | 44 | "babel-core": "7.0.0-bridge.0", |
38 | | - "babel-eslint": "10.0.3", |
39 | | - "cross-env": "^6.0.3", |
40 | | - "eslint": "6.6.0", |
41 | | - "eslint-config-prettier": "^6.7.0", |
42 | | - "eslint-config-react-app": "^5.0.2", |
43 | | - "eslint-config-standard": "^14.1.0", |
| 45 | + "babel-eslint": "10.1.0", |
| 46 | + "cross-env": "^7.0.2", |
| 47 | + "eslint": "6.8.0", |
| 48 | + "eslint-config-prettier": "^6.10.1", |
| 49 | + "eslint-config-react-app": "^5.2.1", |
| 50 | + "eslint-config-standard": "^14.1.1", |
44 | 51 | "eslint-config-standard-react": "^9.2.0", |
45 | | - "eslint-plugin-flowtype": "4.4.1", |
46 | | - "eslint-plugin-import": "2.18.2", |
| 52 | + "eslint-plugin-flowtype": "4.7.0", |
| 53 | + "eslint-plugin-import": "2.20.1", |
47 | 54 | "eslint-plugin-jsx-a11y": "6.2.3", |
48 | | - "eslint-plugin-node": "^10.0.0", |
| 55 | + "eslint-plugin-node": "^11.0.0", |
49 | 56 | "eslint-plugin-promise": "^4.2.1", |
50 | | - "eslint-plugin-react": "7.16.0", |
51 | | - "eslint-plugin-react-hooks": "2.3.0", |
| 57 | + "eslint-plugin-react": "7.19.0", |
| 58 | + "eslint-plugin-react-hooks": "2.5.1", |
52 | 59 | "eslint-plugin-standard": "^4.0.1", |
53 | | - "react": "^16.12.0", |
54 | | - "react-dom": "^16.12.0", |
55 | | - "rollup": "^1.27.2", |
56 | | - "rollup-plugin-babel": "^4.3.3", |
| 60 | + "react": "^16.13.1", |
| 61 | + "react-dom": "^16.13.1", |
| 62 | + "rollup": "^2.2.0", |
| 63 | + "rollup-plugin-babel": "^4.4.0", |
57 | 64 | "rollup-plugin-commonjs": "^10.1.0", |
58 | 65 | "rollup-plugin-node-resolve": "^5.2.0", |
59 | | - "rollup-plugin-peer-deps-external": "^2.2.0" |
60 | | - }, |
61 | | - "files": [ |
62 | | - "dist" |
63 | | - ] |
| 66 | + "rollup-plugin-peer-deps-external": "^2.2.2", |
| 67 | + "rollup-plugin-size": "^0.2.2", |
| 68 | + "rollup-plugin-terser": "^5.3.0" |
| 69 | + } |
64 | 70 | } |
0 commit comments