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

package.json

91 lines3.7 KB

1{
2 "name": "@tanstack/react-query",
3 "version": "5.105.3",
4 "description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
5 "author": "tannerlinsley",
6 "license": "MIT",
7 "repository": {
8 "type": "git",
9 "url": "git+https://github.com/TanStack/query.git",
10 "directory": "packages/react-query"
11 },
12 "homepage": "https://tanstack.com/query",
13 "funding": {
14 "type": "github",
15 "url": "https://github.com/sponsors/tannerlinsley"
16 },
17 "scripts": {
18 "clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types",
19 "compile": "tsc --project tsconfig.json",
20 "test:oxlint": "oxlint ./src",
21 "test:types": "npm-run-all --serial test:types:*",
22 "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts57 --tsBuildInfoFile .cache/test-types/ts57.tsbuildinfo",
23 "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts58 --tsBuildInfoFile .cache/test-types/ts58.tsbuildinfo",
24 "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts59 --tsBuildInfoFile .cache/test-types/ts59.tsbuildinfo",
25 "test:types:tscurrent": "tsc --project tsconfig.json --outDir .cache/test-types/tscurrent --tsBuildInfoFile .cache/test-types/tscurrent.tsbuildinfo",
26 "test:types:ts70": "node ../../node_modules/typescript70/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts70 --tsBuildInfoFile .cache/test-types/ts70.tsbuildinfo",
27 "test:types:ts71": "node ../../node_modules/typescript71/lib/tsc.js --project tsconfig.legacy.json --outDir .cache/test-types/ts71 --tsBuildInfoFile .cache/test-types/ts71.tsbuildinfo",
28 "test:lib": "vitest",
29 "test:lib:dev": "pnpm run test:lib --watch",
30 "test:build": "publint --strict && attw --pack",
31 "build": "pnpm build:tsdown && pnpm build:codemods",
32 "build:tsdown": "tsdown --tsconfig tsconfig.prod.json",
33 "build:codemods": "rm -rf ./build/codemods && mkdir ./build/codemods && cp -r ../query-codemods/src/* ./build/codemods"
34 },
35 "type": "module",
36 "types": "build/legacy/index.d.ts",
37 "main": "build/legacy/index.cjs",
38 "module": "build/legacy/index.js",
39 "react-native": "src/index.ts",
40 "exports": {
41 ".": {
42 "@tanstack/custom-condition": "./src/index.ts",
43 "import": {
44 "types": "./build/modern/index.d.ts",
45 "default": "./build/modern/index.js"
46 },
47 "require": {
48 "types": "./build/modern/index.d.cts",
49 "default": "./build/modern/index.cjs"
50 }
51 },
52 "./package.json": "./package.json"
53 },
54 "sideEffects": false,
55 "files": [
56 "build",
57 "src",
58 "!src/__tests__",
59 "!build/codemods/node_modules",
60 "!build/codemods/vite.config.ts",
61 "!build/codemods/**/__testfixtures__",
62 "!build/codemods/**/__tests__"
63 ],
64 "dependencies": {
65 "@tanstack/query-core": "workspace:*"
66 },
67 "devDependencies": {
68 "@eslint-react/eslint-plugin": "catalog:",
69 "@tanstack/query-persist-client-core": "workspace:*",
70 "@tanstack/query-test-utils": "workspace:*",
71 "@testing-library/react": "catalog:",
72 "@testing-library/react-render-stream": "^2.0.2",
73 "@types/react": "catalog:",
74 "@types/react-dom": "catalog:",
75 "@vitejs/plugin-react": "catalog:",
76 "eslint-plugin-react-hooks": "catalog:",
77 "react": "catalog:",
78 "react-dom": "catalog:",
79 "react-error-boundary": "^4.1.2",
80 "typescript": "catalog:"
81 },
82 "peerDependencies": {
83 "@types/react": "^18 || ^19",
84 "react": "^18 || ^19"
85 },
86 "peerDependenciesMeta": {
87 "@types/react": {
88 "optional": true
89 }
90 }