forked from sanity-io/client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
99 lines (99 loc) · 3 KB
/
package.json
File metadata and controls
99 lines (99 loc) · 3 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "@sanity/client",
"version": "3.4.1",
"description": "Client for retrieving, creating and patching data from Sanity.io",
"main": "lib/sanityClient.js",
"umd": "umd/sanityClient.min.js",
"unpkg": "umd/sanityClient.min.js",
"types": "./sanityClient.d.ts",
"files": [
"dist",
"lib",
"umd",
"sanityClient.d.ts"
],
"scripts": {
"browserify": "NODE_ENV=production BROWSERIFY_ENV=build DEBUG='' browserify -t envify -g uglifyify lib/sanityClient.js -o umd/sanityClient.js --standalone=SanityClient",
"compile": "babel -d lib src",
"build": "npm run compile && npm run browserify && npm run minify && npm run esbuild:browser",
"esbuild": "esbuild src/sanityClient.js --bundle --sourcemap --external:object-assign --external:rxjs --external:@sanity/eventsource --external:get-it --external:make-error",
"esbuild:browser": "npm run esbuild -- --format=esm --outfile=dist/sanityClient.browser.mjs --platform=browser",
"lint": "eslint .",
"clean": "rimraf dist lib coverage .nyc_output umd/*.js",
"typecheck": "tsc --lib es2015 --lib dom,es2015 --noEmit sanityClient.d.ts",
"coverage": "DEBUG=sanity NODE_ENV=test nyc --reporter=html --reporter=lcov --reporter=text npm test",
"minify": "terser -c -m -- umd/sanityClient.js > umd/sanityClient.min.js",
"prepublishOnly": "npm run clean && npm run build",
"test": "NODE_ENV=test tape test/*.test.js",
"posttest": "npm run lint && npm run typecheck --strict"
},
"browser": {
"./src/http/nodeMiddleware.js": "./src/http/browserMiddleware.js",
"./lib/http/nodeMiddleware.js": "./lib/http/browserMiddleware.js"
},
"engines": {
"node": ">=12"
},
"dependencies": {
"@sanity/eventsource": "^4.0.0",
"get-it": "^6.1.1",
"make-error": "^1.3.6",
"object-assign": "^4.1.1",
"rxjs": "^6.6.7",
"url": "^0.11.0"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/preset-env": "^7.19.3",
"@types/node": "^16.11.64",
"browserify": "^17.0.0",
"envify": "^4.1.0",
"esbuild": "^0.15.10",
"eslint": "^8.24.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-sanity": "^6.0.0",
"nock": "^13.2.9",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"sse-channel": "^4.0.0",
"tape": "^5.6.1",
"terser": "^5.15.1",
"typescript": "^4.8.4",
"uglifyify": "^5.0.2",
"xtend": "4.0.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sanity-io/client.git"
},
"keywords": [
"sanity",
"cms",
"headless",
"realtime",
"content",
"client",
"fetch",
"api"
],
"author": "Sanity.io <hello@sanity.io>",
"license": "MIT",
"bugs": {
"url": "https://github.com/sanity-io/client/issues"
},
"homepage": "https://www.sanity.io/",
"nyc": {
"include": [
"src/**/*.js"
],
"sourceMap": false
},
"prettier": {
"semi": false,
"printWidth": 100,
"bracketSpacing": false,
"singleQuote": true
}
}