forked from sanity-io/client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
159 lines (159 loc) · 4.65 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"name": "@sanity/client",
"version": "6.21.2",
"description": "Client for retrieving, creating and patching data from Sanity.io",
"keywords": [
"sanity",
"cms",
"headless",
"realtime",
"content",
"client",
"fetch",
"api"
],
"homepage": "https://www.sanity.io/",
"bugs": {
"url": "https://github.com/sanity-io/client/issues"
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/sanity-io/client.git"
},
"license": "MIT",
"author": "Sanity.io <[email protected]>",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"source": "./src/index.ts",
"browser": {
"source": "./src/index.browser.ts",
"import": "./dist/index.browser.js",
"require": "./dist/index.browser.cjs"
},
"react-native": {
"import": "./dist/index.browser.js",
"require": "./dist/index.browser.cjs"
},
"react-server": "./dist/index.browser.js",
"bun": "./dist/index.browser.js",
"deno": "./dist/index.browser.js",
"edge": "./dist/index.browser.js",
"edge-light": "./dist/index.browser.js",
"worker": "./dist/index.browser.js",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./csm": {
"source": "./src/csm/index.ts",
"import": "./dist/csm.js",
"require": "./dist/csm.cjs",
"default": "./dist/csm.js"
},
"./stega": {
"source": "./src/stega/index.ts",
"browser": {
"source": "./src/stega/index.ts",
"import": "./dist/stega.browser.js",
"require": "./dist/stega.browser.cjs"
},
"import": "./dist/stega.js",
"require": "./dist/stega.cjs",
"default": "./dist/stega.js"
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"unpkg": "umd/sanityClient.min.js",
"module": "./dist/index.js",
"browser": {
"./dist/index.cjs": "./dist/index.browser.cjs",
"./dist/index.js": "./dist/index.browser.js"
},
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"csm": [
"./dist/csm.d.ts"
],
"stega": [
"./dist/stega.d.ts"
]
}
},
"files": [
"dist",
"src",
"umd"
],
"scripts": {
"prebuild": "npm run clean",
"build": "pkg build --strict && pkg --strict && npm run rollup && npm run minify",
"clean": "npx rimraf dist coverage umd/*.js",
"coverage": "vitest run --coverage",
"lint": "eslint . --ext .cjs,.js,.ts --max-warnings 0",
"minify": "terser -c -m -- umd/sanityClient.js > umd/sanityClient.min.js",
"prepublishOnly": "npm run build",
"rollup": "NODE_ENV=production rollup -c rollup.config.cjs",
"test": "vitest",
"test:browser": "npm test -- --config ./vitest.browser.config.ts",
"test:bun": "bun test runtimes/bun",
"test:deno": "deno test --allow-read --allow-net --allow-env --fail-fast --import-map=runtimes/deno/import_map.json runtimes/deno",
"test:deno:update_import_map": "deno run --allow-read --allow-write runtimes/deno/update_import_map.ts",
"test:edge-runtime": "npm test -- --config vitest.edge.config.ts",
"test:next": "npm test -- --config ./vitest.next.config.ts",
"test:node-runtimes": "node --test runtimes/node | npx faucet"
},
"browserslist": "extends @sanity/browserslist-config",
"prettier": {
"bracketSpacing": false,
"plugins": [
"prettier-plugin-packagejson"
],
"printWidth": 100,
"semi": false,
"singleQuote": true
},
"dependencies": {
"@sanity/eventsource": "^5.0.2",
"get-it": "^8.6.4",
"rxjs": "^7.0.0"
},
"devDependencies": {
"@edge-runtime/types": "^3.0.1",
"@edge-runtime/vm": "^4.0.1",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@sanity/pkg-utils": "^6.10.9",
"@types/json-diff": "^1.0.3",
"@types/node": "^20.8.8",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/stega": "0.1.2",
"@vitest/coverage-v8": "2.0.5",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"faucet": "^0.0.4",
"happy-dom": "^12.10.3",
"json-diff": "^1.0.6",
"ls-engines": "^0.9.3",
"next": "^14.2.5",
"nock": "^13.5.4",
"prettier": "^3.3.3",
"prettier-plugin-packagejson": "^2.5.1",
"rimraf": "^5.0.7",
"rollup": "^4.20.0",
"sse-channel": "^4.0.0",
"terser": "^5.31.5",
"typescript": "5.5.3",
"vitest": "2.0.5",
"vitest-github-actions-reporter": "0.11.1"
},
"engines": {
"node": ">=14.18"
}
}