Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

package.json

133 lines5.2 KB

1{
2 "name": "react-query",
3 "version": "1.0.0-semantic-release",
4 "description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
5 "author": "tannerlinsley",
6 "license": "MIT",
7 "repository": "tannerlinsley/react-query",
8 "homepage": "https://github.com/tannerlinsley/react-query#readme",
9 "funding": {
10 "type": "github",
11 "url": "https://github.com/sponsors/tannerlinsley"
12 },
13 "main": "lib/index.js",
14 "unpkg": "dist/react-query.development.js",
15 "types": "types/index.d.ts",
16 "module": "es/index.js",
17 "sideEffects": [
18 "es/react/setBatchUpdatesFn.js",
19 "es/react/setLogger.js",
20 "lib/react/setBatchUpdatesFn.js",
21 "lib/react/setLogger.js"
22 ],
23 "scripts": {
24 "test": "is-ci \"test:ci\" \"test:dev\"",
25 "test:dev": "npm run test:types && npm run test:format && npm run test:eslint && jest --watch",
26 "test:ci": "npm run test:types && npm run test:format && npm run test:eslint && jest",
27 "test:coverage": "yarn test:ci; open coverage/lcov-report/index.html",
28 "test:format": "yarn prettier --check",
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 "prettier": "prettier \"{.,src,src/**,example/src,example/src/**,types}/*.{md,js,jsx,ts,tsx,json}\"",
43 "start": "yarn watch",
44 "format": "yarn prettier --write",
45 "stats": "open ./stats.html"
46 },
47 "files": [
48 "core",
49 "dist",
50 "es",
51 "hydration",
52 "devtools",
53 "persistQueryClient-experimental",
54 "createWebStoragePersistor-experimental",
55 "createAsyncStoragePersistor-experimental",
56 "broadcastQueryClient-experimental",
57 "lib",
58 "react",
59 "scripts",
60 "types"
61 ],
62 "dependencies": {
63 "@babel/runtime": "^7.5.5",
64 "broadcast-channel": "^3.4.1",
65 "match-sorter": "^6.0.2"
66 },
67 "peerDependencies": {
68 "react": "^16.8.0 || ^17.0.0"
69 },
70 "peerDependenciesMeta": {
71 "react-dom": {
72 "optional": true
73 },
74 "react-native": {
75 "optional": true
76 }
77 },
78 "devDependencies": {
79 "@babel/cli": "^7.11.6",
80 "@babel/core": "^7.11.6",
81 "@babel/plugin-transform-runtime": "^7.11.5",
82 "@babel/preset-env": "^7.11.5",
83 "@babel/preset-react": "^7.10.4",
84 "@babel/preset-typescript": "^7.10.4",
85 "@rollup/plugin-replace": "^2.3.3",
86 "@svgr/rollup": "^5.4.0",
87 "@testing-library/react": "^10.4.7",
88 "@types/jest": "^26.0.4",
89 "@types/react": "^16.9.41",
90 "@types/react-dom": "^16.9.8",
91 "@typescript-eslint/eslint-plugin": "^4.8.1",
92 "@typescript-eslint/parser": "^4.8.1",
93 "babel-eslint": "^10.1.0",
94 "babel-jest": "^26.0.1",
95 "babel-plugin-const-enum": "^1.0.1",
96 "babel-plugin-transform-async-to-promises": "^0.8.15",
97 "cross-env": "^7.0.2",
98 "eslint": "7.x",
99 "eslint-config-prettier": "^6.11.0",
100 "eslint-config-react-app": "^5.2.1",
101 "eslint-config-standard": "^14.1.1",
102 "eslint-config-standard-react": "^9.2.0",
103 "eslint-plugin-flowtype": "5.x",
104 "eslint-plugin-import": "^2.22.1",
105 "eslint-plugin-jsx-a11y": "6.x",
106 "eslint-plugin-node": "^11.1.0",
107 "eslint-plugin-prettier": "^3.1.3",
108 "eslint-plugin-promise": "^4.2.1",
109 "eslint-plugin-react": "7.20.0",
110 "eslint-plugin-react-hooks": "4.0.4",
111 "eslint-plugin-standard": "^4.0.1",
112 "is-ci-cli": "^2.1.1",
113 "jest": "^26.0.1",
114 "prettier": "2.2.1",
115 "react": "^16.13.0",
116 "react-dom": "^16.13.1",
117 "react-error-boundary": "^2.2.2",
118 "replace": "^1.2.0",
119 "rimraf": "^3.0.2",
120 "rollup": "^2.16.1",
121 "rollup-plugin-babel": "^4.4.0",
122 "rollup-plugin-commonjs": "^10.1.0",
123 "rollup-plugin-jscc": "^1.0.0",
124 "rollup-plugin-node-resolve": "^5.2.0",
125 "rollup-plugin-peer-deps-external": "^2.2.2",
126 "rollup-plugin-prettier": "^2.1.0",
127 "rollup-plugin-size": "^0.2.2",
128 "rollup-plugin-terser": "^6.1.0",
129 "rollup-plugin-visualizer": "^4.0.4",
130 "type-fest": "^0.21.0",
131 "typescript": "^4.1.2"
132 }