-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
78 lines (78 loc) · 2.5 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
{
"name": "cachette",
"version": "2.1.5",
"engines": {
"node": ">=18",
"npm": ">=9.5.0"
},
"description": "Resilient cache library supporting concurrent requests through local cache or Redis.",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
"repository": "https://github.com/unitoio/cachette",
"author": {
"name": "Unito",
"email": "[email protected]"
},
"license": "MIT",
"keywords": [
"typescript",
"cache",
"concurrent",
"redis",
"decorator"
],
"scripts": {
"audit-with-ignore": "check-audit",
"clean": "rm -rf dist/ node_modules/ ci_output/ coverage/ .nyc_output/ *.tgz",
"compile": "tsc",
"prepublishOnly": "npm run clean && npm install && npm run compile",
"lint": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'",
"test": "npm run compile && nyc mocha --config test/mocharc.js 'dist/test/**/*.js'; test -z \"$TEST_REDIS_URL\" && echo '!!! Warning: TEST_REDIS_URL unset, Redis tests did not run !!!' || true",
"test:ci": "npm run compile && mkdir -p ci_output/testresults && mocha --config test/mocharc-ci.js 'dist/test/**/*.js'",
"relock": "rm -rf node_modules package-lock.json; npm install --package-lock; npm out; true",
"postprepare": "npm run --silent githook-install",
"githook-install": "mkdir -p .git/hooks/ && echo '#!/usr/bin/env sh\necho \"⚠️ Reminder that cachette is a *public* repo! ⚠️\"\necho \"No private info in: branch name, commit message, PR title & description & comments!\"\necho \"Ctrl+C to abort git push, Enter to proceed.\"\nread REPLY < /dev/tty' > '.git/hooks/pre-push' && chmod +x '.git/hooks/pre-push'"
},
"nyc": {
"cache": false,
"check-coverage": true,
"all": true,
"lines": 75,
"extension": [
".ts"
],
"exclude": [
"**/scripts/**",
"**/*.d.ts",
"coverage/**",
"test/**",
"test{,-*}.ts",
"**/*{.,-}{test,spec}.ts",
"**/node_modules/**",
".eslintrc.js"
]
},
"devDependencies": {
"@eslint/js": "9.x",
"@types/chai": "4.x",
"@types/eslint__js": "8.x",
"@types/mocha": "10.x",
"@types/node": "18.x",
"@types/redlock": "4.x",
"@types/sinon": "17.x",
"chai": "4.x",
"eslint": "9.10.0",
"mocha": "10.x",
"npm-audit-resolver": "^3.0.0-7",
"nyc": "17.x",
"sinon": "19.x",
"source-map-support": "0.x",
"typescript": "5.x",
"typescript-eslint": "8.x"
},
"dependencies": {
"ioredis": "5.x",
"lru-cache": "10.x",
"redlock": "4.x"
}
}