-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
76 lines (76 loc) · 2.19 KB
/
Copy pathpackage.json
File metadata and controls
76 lines (76 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"$schema": "https://json.schemastore.org/package",
"name": "tanstack-query-optimistic-updates",
"version": "0.0.2",
"repository": {
"type": "git",
"url": "https://github.com/mugglim/tanstack-query-optimistic-updates"
},
"description": "A way to simplifies optimistic updates in React Query",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.mjs",
"types": "./dist/cjs/index.d.ts",
"files": [
"dist"
],
"keywords": [
"tanstack-query",
"react-query",
"optimistic-update"
],
"author": "mugglim",
"license": "MIT",
"sideEffects": false,
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"scripts": {
"prepare": "lefthook install -f",
"lint": "eslint '**/*.{js,jsx,ts,tsx}'",
"lint:fix": "eslint '**/*.{js,jsx,ts,tsx}' --fix",
"prettier": "prettier --check '**/*.{js,jsx,ts,tsx}'",
"prettier:fix": "prettier --write '**/*.{js,jsx,ts,tsx}'",
"test": "vitest --coverage --typecheck",
"clean": "rm -rf dist",
"build": "pnpm run clean && vite build --config vite.config.mts && pnpm run build:dts",
"build:dts": "tsup --config tsup.config.mts",
"release": "changeset publish",
"changeset-version": "changeset version"
},
"packageManager": "pnpm@10.13.1",
"devDependencies": {
"@changesets/cli": "^2.29.5",
"@eslint/js": "^9.13.0",
"@testing-library/react": "^16.3.0",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@vitest/coverage-v8": "3.2.4",
"eslint": "^9.11.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.14",
"globals": "^15.11.0",
"happy-dom": "^18.0.1",
"lefthook": "^1.12.2",
"prettier": "^3.6.2",
"rollup-preserve-directives": "^1.1.3",
"tsup": "^8.5.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.8.0",
"vite": "^7.0.6",
"vitest": "^3.2.4"
},
"peerDependencies": {
"@tanstack/react-query": "^4 || ^5",
"react": "^18 || ^19"
}
}