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

package.json

128 lines5.0 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:eslint && jest --watch",
26 "test:ci": "npm run test:types && npm run test:eslint && jest",
27 "test:coverage": "yarn test:ci; open coverage/lcov-report/index.html",
28 "test:types": "tsc",
29 "test:eslint": "eslint --ext .ts,.tsx ./src",
30 "build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types",
31 "build:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
32 "build:es": "rimraf ./es && babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es",
33 "build:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -c && rollup-plugin-visualizer stats-react.json",
34 "build:types": "rimraf ./types && tsc --project ./tsconfig.types.json && replace 'import type' 'import' ./types -r --silent && replace 'export type' 'export' ./types -r --silent",
35 "watch": "yarn watch:commonjs & yarn watch:es & yarn watch:umd & yarn watch:types",
36 "watch:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
37 "watch:es": "rimraf ./es && babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es",
38 "watch:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -w -c && rollup-plugin-visualizer stats-react.json",
39 "watch:types": "rimraf ./types && tsc --watch --project ./tsconfig.types.json && replace 'import type' 'import' ./types -r --silent && replace 'export type' 'export' ./types -r --silent",
40 "now-build": "yarn && cd www && yarn && yarn build",
41 "start": "yarn watch",
42 "format": "prettier {.,src,src/**,example/src,example/src/**,types}/*.{md,js,jsx,tsx,json} --write",
43 "stats": "open ./stats.html"
44 },
45 "files": [
46 "core",
47 "dist",
48 "es",
49 "hydration",
50 "devtools",
51 "persistQueryClient-experimental",
52 "createLocalStoragePersistor-experimental",
53 "lib",
54 "react",
55 "scripts",
56 "types"
57 ],
58 "dependencies": {
59 "@babel/runtime": "^7.5.5",
60 "match-sorter": "^6.0.2"
61 },
62 "peerDependencies": {
63 "react": "^16.8.0 || ^17.0.0"
64 },
65 "peerDependenciesMeta": {
66 "react-dom": {
67 "optional": true
68 },
69 "react-native": {
70 "optional": true
71 }
72 },
73 "devDependencies": {
74 "@babel/cli": "^7.11.6",
75 "@babel/core": "^7.11.6",
76 "@babel/plugin-transform-runtime": "^7.11.5",
77 "@babel/preset-env": "^7.11.5",
78 "@babel/preset-react": "^7.10.4",
79 "@babel/preset-typescript": "^7.10.4",
80 "@rollup/plugin-replace": "^2.3.3",
81 "@svgr/rollup": "^5.4.0",
82 "@testing-library/react": "^10.4.7",
83 "@types/jest": "^26.0.4",
84 "@types/react": "^16.9.41",
85 "@types/react-dom": "^16.9.8",
86 "@typescript-eslint/eslint-plugin": "^4.8.1",
87 "@typescript-eslint/parser": "^4.8.1",
88 "babel-eslint": "^10.1.0",
89 "babel-jest": "^26.0.1",
90 "babel-plugin-const-enum": "^1.0.1",
91 "babel-plugin-transform-async-to-promises": "^0.8.15",
92 "cross-env": "^7.0.2",
93 "eslint": "7.x",
94 "eslint-config-prettier": "^6.11.0",
95 "eslint-config-react-app": "^5.2.1",
96 "eslint-config-standard": "^14.1.1",
97 "eslint-config-standard-react": "^9.2.0",
98 "eslint-plugin-flowtype": "5.x",
99 "eslint-plugin-import": "^2.22.1",
100 "eslint-plugin-jsx-a11y": "6.x",
101 "eslint-plugin-node": "^11.1.0",
102 "eslint-plugin-prettier": "^3.1.3",
103 "eslint-plugin-promise": "^4.2.1",
104 "eslint-plugin-react": "7.20.0",
105 "eslint-plugin-react-hooks": "4.0.4",
106 "eslint-plugin-standard": "^4.0.1",
107 "is-ci-cli": "^2.1.1",
108 "jest": "^26.0.1",
109 "prettier": "^2.0.5",
110 "react": "^16.13.0",
111 "react-dom": "^16.13.1",
112 "react-error-boundary": "^2.2.2",
113 "replace": "^1.2.0",
114 "rimraf": "^3.0.2",
115 "rollup": "^2.16.1",
116 "rollup-plugin-babel": "^4.4.0",
117 "rollup-plugin-commonjs": "^10.1.0",
118 "rollup-plugin-jscc": "^1.0.0",
119 "rollup-plugin-node-resolve": "^5.2.0",
120 "rollup-plugin-peer-deps-external": "^2.2.2",
121 "rollup-plugin-prettier": "^2.1.0",
122 "rollup-plugin-size": "^0.2.2",
123 "rollup-plugin-terser": "^6.1.0",
124 "rollup-plugin-visualizer": "^4.0.4",
125 "type-fest": "^0.21.0",
126 "typescript": "^4.1.2"
127 }