-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
106 lines (106 loc) · 2.41 KB
/
package.json
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "jotai-apollo",
"version": "0.2.1",
"license": "MIT",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"import": "./dist/index.js",
"default": "./dist/index.cjs"
}
},
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"test": "jest --setupFiles ./tests/setup.ts",
"test:ci": "tsc --noEmit && jest --setupFiles ./tests/setup.ts",
"test:dev": "jest --setupFiles ./tests/setup.ts --watch --no-coverage",
"test:coverage:watch": "jest --setupFiles ./tests/setup.ts --watch",
"prepare": "husky install"
},
"files": [
"dist"
],
"peerDependencies": {
"@apollo/client": "*",
"graphql": "*",
"jotai": ">=1.11.0"
},
"peerDependenciesMeta": {
"jotai": {
"optional": false
},
"@apollo/client": {
"optional": false
},
"graphql": {
"optional": false
}
},
"devDependencies": {
"@apollo/client": "^3.7.0",
"@swc/core": "^1.2.114",
"@swc/jest": "^0.2.11",
"@testing-library/react": "^12.1.2",
"@types/jest": "^27.0.3",
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
"@types/zen-observable": "^0.8.3",
"cross-fetch": "^3.1.4",
"graphql": "^16.0.1",
"husky": "^7.0.4",
"jest": "^27.4.2",
"jotai": "^1.13.1",
"lint-staged": "^12.1.2",
"prettier": "^2.5.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"tsup": "^5.10.0",
"typescript": "^4.5.2",
"zen-observable": "^0.8.15"
},
"jest": {
"rootDir": ".",
"testEnvironment": "jsdom",
"moduleNameMapper": {
"^jotai-apollo$": "<rootDir>/src/index.ts"
},
"modulePathIgnorePatterns": [
"dist"
],
"testRegex": "test.(js|ts|tsx)$",
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"coverageReporters": [
"json",
"html",
"text",
"text-summary"
],
"collectCoverageFrom": [
"src/**/*.{js,ts,tsx}",
"tests/**/*.{js,ts,tsx}"
],
"transform": {
"^.+\\.(t|j)sx?$": "@swc/jest"
}
},
"prettier": {
"semi": false,
"trailingComma": "es5",
"singleQuote": true,
"bracketSameLine": true,
"tabWidth": 2,
"printWidth": 80
},
"lint-staged": {
"*.{js,ts,tsx,md}": [
"prettier --write"
]
}
}