-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
71 lines (71 loc) · 2.36 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
{
"name": "node-fetch-cache",
"version": "5.0.2",
"description": "node-fetch with caching.",
"main": "src/index.js",
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/wrapper.cjs"
},
"types": "./dist/index.d.ts",
"scripts": {
"tsc": "tsc",
"buildcjs": "cross-env rollup ./dist/index.js --file ./dist/index.cjs --format cjs && cp ./commonjs/wrapper.cjs ./dist/wrapper.cjs",
"test": "cross-env NODE_OPTIONS=\"--import tsx\" mocha --spec test/tests.ts --spec plugins/redis/test_redis_cache.ts --extensions ts --timeout 10000 --exit && mocha --timeout 10000 --exit test/tests.cjs",
"test:debug": "cross-env NODE_OPTIONS=\"--import tsx\" mocha --inspect --inspect-brk --spec test/tests.ts --spec plugins/redis/test_redis_cache.ts --extensions ts --timeout 10000 --exit",
"test:core": "cross-env NODE_OPTIONS=\"--import tsx\" mocha --spec test/tests.ts --extensions ts --timeout 10000 --exit && mocha --timeout 10000 --exit test/tests.cjs",
"coverage": "c8 --reporter=lcov --reporter=text --reporter=html --exclude=dist --exclude=test --exclude=plugins/redis/test_redis_cache.ts npm test",
"lint": "xo .",
"lintfix": "xo . --fix",
"prepublishOnly": "cross-env rm -rf dist && npm run tsc && npm run buildcjs && npm test",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mistval/node-fetch-cache.git"
},
"keywords": [
"node",
"fetch",
"node-fetch",
"cache",
"cached"
],
"author": "mistval",
"license": "MIT",
"bugs": {
"url": "https://github.com/mistval/node-fetch-cache/issues"
},
"homepage": "https://github.com/mistval/node-fetch-cache#readme",
"devDependencies": {
"@types/cacache": "^17.0.2",
"@types/mocha": "^10.0.6",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"c8": "^8.0.1",
"cross-env": "^7.0.3",
"dotenv": "^16.3.1",
"encoding": "^0.1.13",
"husky": "^8.0.3",
"mocha": "^10.2.0",
"rimraf": "^5.0.5",
"rollup": "^4.9.1",
"tsx": "^4.17.0",
"typescript": "^5.5.4"
},
"dependencies": {
"cacache": "^18.0.4",
"formdata-node": "^6.0.3",
"locko": "^1.1.0",
"node-fetch": "3.3.2"
},
"husky": {
"hooks": {
"pre-commit": "npm run prepublishOnly"
}
},
"engines": {
"node": ">=18.19.0"
}
}