|
1 | 1 | {
|
2 | 2 | "name": "react-charts",
|
3 |
| - "author": "Tanner Linsley", |
4 |
| - "description": "Charts for React", |
5 |
| - "repository": "tannerlinsley/react-charts", |
6 |
| - "module": "dist/react-charts.esm.js", |
7 |
| - "version": "0.1.0", |
| 3 | + "version": "1.0.0-semantic-release", |
| 4 | + "description": "Hooks for managing, caching and syncing asynchronous and remote data in React", |
| 5 | + "author": "tannerlinsley", |
8 | 6 | "license": "MIT",
|
9 |
| - "main": "dist/index.js", |
10 |
| - "typings": "dist/index.d.ts", |
| 7 | + "repository": "tannerlinsley/react-charts", |
| 8 | + "homepage": "https://github.com/tannerlinsley/react-charts#readme", |
11 | 9 | "funding": {
|
12 | 10 | "type": "github",
|
13 | 11 | "url": "https://github.com/sponsors/tannerlinsley"
|
14 | 12 | },
|
| 13 | + "main": "lib/index.js", |
| 14 | + "unpkg": "dist/react-charts.development.js", |
| 15 | + "types": "types/index.d.ts", |
| 16 | + "module": "es/index.js", |
15 | 17 | "files": [
|
16 | 18 | "dist",
|
17 |
| - "src" |
| 19 | + "es", |
| 20 | + "lib", |
| 21 | + "scripts", |
| 22 | + "types" |
18 | 23 | ],
|
19 |
| - "engines": { |
20 |
| - "node": ">=10" |
21 |
| - }, |
22 | 24 | "scripts": {
|
23 |
| - "start": "tsdx watch", |
24 |
| - "build": "tsdx build", |
25 |
| - "test": "tsdx test --passWithNoTests", |
26 |
| - "lint": "tsdx lint", |
27 |
| - "prepare": "tsdx build", |
28 |
| - "size": "size-limit", |
29 |
| - "analyze": "size-limit --why", |
| 25 | + "test": "is-ci \"test:ci\" \"test:dev\"", |
| 26 | + "test:dev": "npm run test:types && npm run test:eslint && jest --watch", |
| 27 | + "test:ci": "npm run test:types && npm run test:eslint && jest", |
| 28 | + "test:coverage": "yarn test:ci; open coverage/lcov-report/index.html", |
| 29 | + "test:types": "tsc", |
| 30 | + "test:eslint": "eslint --ext .ts,.tsx ./src", |
| 31 | + "build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types", |
| 32 | + "build:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib", |
| 33 | + "build:es": "rimraf ./es && babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es", |
| 34 | + "build:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -c && rollup-plugin-visualizer stats-react.json", |
| 35 | + "build:types": "rimraf ./types && tsc --project ./tsconfig.types.json && replace 'import type' 'import' ./types -r --silent && replace 'export type' 'export' ./types -r --silent", |
| 36 | + "watch": "yarn watch:commonjs & yarn watch:es & yarn watch:umd & yarn watch:types", |
| 37 | + "watch:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib", |
| 38 | + "watch:es": "rimraf ./es && babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es", |
| 39 | + "watch:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -w -c && rollup-plugin-visualizer stats-react.json", |
| 40 | + "watch:types": "rimraf ./types && tsc --watch --project ./tsconfig.types.json && replace 'import type' 'import' ./types -r --silent && replace 'export type' 'export' ./types -r --silent", |
| 41 | + "now-build": "yarn && cd www && yarn && yarn build", |
| 42 | + "start": "yarn watch", |
| 43 | + "format": "prettier {.,src,src/**,example/src,example/src/**,types}/*.{md,js,jsx,tsx,json} --write", |
| 44 | + "stats": "open ./stats.html", |
30 | 45 | "typedoc": "typedoc"
|
31 | 46 | },
|
32 | 47 | "peerDependencies": {
|
|
54 | 69 | "pre-commit": "tsdx lint"
|
55 | 70 | }
|
56 | 71 | },
|
57 |
| - "size-limit": [ |
58 |
| - { |
59 |
| - "path": "dist/react-charts-1.cjs.production.min.js", |
60 |
| - "limit": "10 KB" |
61 |
| - }, |
62 |
| - { |
63 |
| - "path": "dist/react-charts-1.esm.js", |
64 |
| - "limit": "10 KB" |
65 |
| - } |
66 |
| - ], |
67 | 72 | "devDependencies": {
|
68 |
| - "@babel/core": "^7.14.6", |
69 |
| - "@size-limit/preset-small-lib": "^5.0.1", |
70 |
| - "@trivago/prettier-plugin-sort-imports": "^2.0.2", |
71 |
| - "@types/d3-shape": "^3.0.1", |
72 |
| - "@types/react": "^17.0.14", |
73 |
| - "@types/react-dom": "^17.0.9", |
74 |
| - "@typescript-eslint/eslint-plugin": "^4.28.2", |
75 |
| - "@typescript-eslint/parser": "^4.28.2", |
76 |
| - "babel-loader": "^8.2.2", |
77 |
| - "eslint": "^7.30.0", |
| 73 | + "@babel/cli": "^7.11.6", |
| 74 | + "@babel/core": "^7.11.6", |
| 75 | + "@babel/plugin-transform-runtime": "^7.11.5", |
| 76 | + "@babel/preset-env": "^7.11.5", |
| 77 | + "@babel/preset-react": "^7.10.4", |
| 78 | + "@babel/preset-typescript": "^7.10.4", |
| 79 | + "@rollup/plugin-replace": "^2.3.3", |
| 80 | + "@svgr/rollup": "^5.4.0", |
| 81 | + "@testing-library/react": "^12.0.0", |
| 82 | + "@types/jest": "^26.0.4", |
| 83 | + "@typescript-eslint/eslint-plugin": "^4.8.1", |
| 84 | + "@typescript-eslint/parser": "^4.8.1", |
| 85 | + "babel-eslint": "^10.1.0", |
| 86 | + "babel-jest": "^27.0.6", |
| 87 | + "babel-plugin-const-enum": "^1.0.1", |
| 88 | + "babel-plugin-transform-async-to-promises": "^0.8.15", |
| 89 | + "cross-env": "^7.0.2", |
| 90 | + "eslint": "7.x", |
78 | 91 | "eslint-config-prettier": "^8.3.0",
|
79 |
| - "eslint-plugin-react-hooks": "^4.2.0", |
80 |
| - "husky": "^6.0.0", |
| 92 | + "eslint-config-react-app": "^6.0.0", |
| 93 | + "eslint-config-standard": "^16.0.3", |
| 94 | + "eslint-config-standard-react": "^11.0.1", |
| 95 | + "eslint-plugin-flowtype": "5.x", |
| 96 | + "eslint-plugin-import": "^2.22.1", |
| 97 | + "eslint-plugin-jsx-a11y": "6.x", |
| 98 | + "eslint-plugin-node": "^11.1.0", |
| 99 | + "eslint-plugin-prettier": "^3.1.3", |
| 100 | + "eslint-plugin-promise": "^5.1.0", |
| 101 | + "eslint-plugin-react": "7.24.0", |
| 102 | + "eslint-plugin-react-hooks": "4.2.0", |
| 103 | + "eslint-plugin-standard": "^5.0.0", |
| 104 | + "is-ci-cli": "^2.1.1", |
| 105 | + "jest": "^27.0.6", |
| 106 | + "prettier": "2.3.2", |
81 | 107 | "react": "^17.0.2",
|
82 | 108 | "react-dom": "^17.0.2",
|
83 |
| - "react-is": "^17.0.2", |
| 109 | + "react-error-boundary": "^3.1.3", |
| 110 | + "replace": "^1.2.0", |
| 111 | + "rimraf": "^3.0.2", |
| 112 | + "rollup": "^2.16.1", |
84 | 113 | "rollup-plugin-babel": "^4.4.0",
|
| 114 | + "rollup-plugin-commonjs": "^10.1.0", |
| 115 | + "rollup-plugin-jscc": "^2.0.0", |
85 | 116 | "rollup-plugin-node-resolve": "^5.2.0",
|
86 |
| - "size-limit": "^5.0.1", |
87 |
| - "tsdx": "^0.14.1", |
88 |
| - "tslib": "^2.3.0", |
89 |
| - "typedoc": "^0.21.2", |
| 117 | + "rollup-plugin-peer-deps-external": "^2.2.2", |
| 118 | + "rollup-plugin-prettier": "^2.1.0", |
| 119 | + "rollup-plugin-size": "^0.2.2", |
| 120 | + "rollup-plugin-terser": "^7.0.2", |
| 121 | + "rollup-plugin-visualizer": "^5.5.2", |
90 | 122 | "typescript": "^4.3.5"
|
91 | 123 | },
|
92 | 124 | "dependencies": {
|
| 125 | + "@babel/runtime": "^7.14.6", |
| 126 | + "@reach/observe-rect": "^1.2.0", |
| 127 | + "@react-spring/web": "^9.2.3", |
93 | 128 | "@types/d3-array": "^3.0.1",
|
94 | 129 | "@types/d3-scale": "^4.0.1",
|
| 130 | + "@types/d3-shape": "^3.0.1", |
95 | 131 | "@types/raf": "^3.4.0",
|
96 |
| - "@reach/observe-rect": "^1.2.0", |
97 |
| - "@react-spring/web": "^9.2.3", |
98 |
| - "d3-array": "^3.0.1", |
99 |
| - "d3-scale": "^4.0.0", |
100 |
| - "d3-shape": "^3.0.1", |
101 |
| - "d3-time": "^3.0.0", |
102 |
| - "jotai": "^1.1.2", |
| 132 | + "@types/react": "^17.0.14", |
| 133 | + "@types/react-dom": "^17.0.9", |
| 134 | + "d3-array": "^2.12.1", |
| 135 | + "d3-scale": "^3.3.0", |
| 136 | + "d3-shape": "^2.1.0", |
| 137 | + "d3-time": "^2.1.1", |
| 138 | + "jotai": "^1.1.3", |
103 | 139 | "ts-toolbelt": "^9.6.0"
|
104 |
| - }, |
105 |
| - "resolutions": { |
106 |
| - "typescript": "^4.3.2" |
107 | 140 | }
|
108 | 141 | }
|
0 commit comments