-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
88 lines (88 loc) · 2.28 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
{
"name": "fetchff",
"version": "3.0.1",
"license": "UNLICENSED",
"author": "Matt Czapliński <deindesign.pl@gmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/MattCCC/fetchff.git"
},
"main": "dist/node/index.js",
"browser": "dist/browser/index.mjs",
"module": "dist/browser/index.mjs",
"types": "dist/index.d.ts",
"unpkg": "./dist/browser/index.mjs",
"keywords": [
"fetch",
"fetchff",
"fetch-wrapper",
"fetch-client",
"request",
"cache",
"fetch-cache",
"fetch-retry",
"api",
"api-handler",
"http-request",
"http-client",
"browser",
"node",
"nodejs"
],
"engines": {
"node": ">=18"
},
"sideEffects": false,
"scripts": {
"build": "npm run build:node && npm run build:browser && npm run build:cleanup",
"build:browser": "tsup --format esm,iife --out-dir dist/browser --env.NODE_ENV production",
"build:node": "tsup --format cjs --out-dir dist/node --env.NODE_ENV production --target node18",
"build:cleanup": "rm -f dist/browser/index.d.mts dist/node/index.d.ts && mv dist/browser/index.d.ts dist/index.d.ts",
"type-check": "tsc --noEmit",
"test": "jest --forceExit --coverage --detectOpenHandles",
"lint": "eslint ./src/**/*.ts ./test/**/*.spec.ts",
"release": "npm version patch && git push --tags",
"prepublishOnly": "npm run build",
"size": "size-limit",
"analyze": "size-limit --why"
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "all"
},
"size-limit": [
{
"path": "dist/browser/index.mjs",
"limit": "5 KB"
},
{
"path": "dist/browser/index.global.js",
"limit": "5 KB"
},
{
"path": "dist/node/index.js",
"limit": "5 KB"
}
],
"devDependencies": {
"@size-limit/preset-small-lib": "11.1.5",
"@types/jest": "29.5.13",
"eslint": "9.11.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.2.1",
"fetch-mock": "11.1.5",
"jest": "29.7.0",
"prettier": "3.3.3",
"size-limit": "11.1.5",
"ts-jest": "29.2.5",
"tslib": "2.7.0",
"tsup": "8.3.0",
"typescript": "5.6.2",
"typescript-eslint": "8.8.0"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.21.3"
}
}