-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
95 lines (95 loc) · 4.32 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
{
"name": "@tkrotoff/fetch",
"version": "0.17.0",
"description": "Fetch wrapper",
"repository": "github:tkrotoff/fetch",
"license": "MIT",
"keywords": [
"http-client",
"http",
"fetch",
"fetch-api"
],
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/"
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist coverage",
"clean:all": "npm run clean && rm -rf node_modules package-lock.json",
"build": "npm run clean && npm run build:dts && npm run build:esm && npm run build:cjs && npm run build:umd",
"build:dts": "tsc --project tsconfig.dist.json --declaration --emitDeclarationOnly --removeComments false --outDir dist",
"build:esm": "tsc --project tsconfig.dist.json --outDir dist",
"build:cjs": "rollup src/index.ts --format cjs --plugin '@rollup/plugin-typescript={tsconfig: `tsconfig.dist.json`}' --file dist/index.cjs",
"build:umd": "rollup src/index.ts --format umd --plugin '@rollup/plugin-typescript={tsconfig: `tsconfig.dist.json`}' --name Http --file dist/index.umd.js",
"npm:install:examples": "npm run npm:install:example:web && npm run npm:install:example:node",
"//": "Why --install-links? FIXME https://github.com/nodejs/node/issues/46270",
"npm:install:example:web": "cd examples/web && npm install --install-links",
"npm:install:example:node": "cd examples/node && npm install",
"build:examples": "npm run build:example:web",
"build:example:web": "cd examples/web && npm run build",
"start:examples": "npm run start:example:node",
"start:example:node": "cd examples/node && npm run start",
"test": "npm run test:undici",
"test:coverage": "npm run test:coverage:undici",
"test:undici": "NODE_EXTRA_CA_CERTS=./src/createTestServer/createTestServer.cert FETCH=undici jest --verbose",
"test:coverage:undici": "NODE_EXTRA_CA_CERTS=./src/createTestServer/createTestServer.cert FETCH=undici jest --coverage",
"test:whatwg-fetch": "NODE_EXTRA_CA_CERTS=./src/createTestServer/createTestServer.cert FETCH=whatwg-fetch jest --env=jsdom --verbose",
"test:coverage:whatwg-fetch": "NODE_EXTRA_CA_CERTS=./src/createTestServer/createTestServer.cert FETCH=whatwg-fetch jest --env=jsdom --coverage",
"test:e2e": "playwright test",
"test:e2e:debug": "playwright test --debug",
"test:coverage:examples": "npm run test:coverage:example:web && npm run test:coverage:example:node",
"test:coverage:example:web": "cd examples/web && npm run test:coverage",
"test:coverage:example:node": "cd examples/node && npm run test:coverage",
"tsc": "tsc",
"tsc:examples": "npm run tsc:example:web && npm run tsc:example:node",
"tsc:example:web": "cd examples/web && npm run tsc",
"tsc:example:node": "cd examples/node && npm run tsc",
"format": "prettier --write .",
"lint": "npm run tsc && DEBUG=eslint:cli-engine eslint .",
"prepare": "husky install",
"precommit": "npm run lint && npm run tsc:examples",
"prepush": "npm run test",
"prepublishOnly": "npm run build",
"publish:beta": "npm version 0.1.0-beta.1 && npm publish --tag next --dry-run",
"npm:update": "npm run clean:all && npx npm-check-updates --upgrade && npm install"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.22.8",
"@babel/preset-env": "^7.22.7",
"@babel/preset-typescript": "^7.22.5",
"@fastify/cors": "^8.3.0",
"@playwright/test": "^1.35.1",
"@rollup/plugin-typescript": "^11.1.2",
"@types/jest": "^29.5.2",
"@types/ua-parser-js": "^0.7.36",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"babel-jest": "^29.6.0",
"eslint": "^8.44.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.2",
"eslint-plugin-playwright": "^0.15.3",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unicorn": "^47.0.0",
"fastify": "^4.19.2",
"husky": "^8.0.3",
"jest": "^29.6.0",
"jest-environment-jsdom": "^29.6.0",
"playwright": "^1.35.1",
"prettier": "^2.8.8",
"rollup": "^3.26.2",
"tslib": "^2.6.0",
"typescript": "^5.1.6",
"ua-parser-js": "^1.0.35",
"undici": "^5.22.1",
"whatwg-fetch": "^3.6.2"
}
}