-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
90 lines (90 loc) · 2.2 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
{
"name": "@parzh/retryable",
"version": "1.7.0",
"description": "Convenience function to retry an action",
"author": "Dima Parzhitsky <parzhitsky@gmail.com>",
"license": "MIT",
"keywords": [
"retryable",
"retryer",
"repeat",
"repeatable",
"retry",
"retry count",
"retryCount"
],
"repository": "github:parzh/retryable",
"homepage": "https://github.com/parzh/retryable#readme",
"bugs": {
"url": "https://github.com/parzh/retryable/issues"
},
"files": [
"/dist",
"!/dist/**/*.impl.d.ts",
"!/dist/typings/*.js",
"!/dist/*.tsbuildinfo",
"/README.md"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"verbose": true,
"rootDir": ".",
"setupFilesAfterEnv": [
"<rootDir>/test/set-timeout.ts",
"<rootDir>/test/enforce-assertions.ts"
],
"testMatch": [
"<rootDir>/**/*.{spec,test}.[jt]s"
],
"transform": {
"\\.ts$": "ts-jest"
},
"resetMocks": true,
"errorOnDeprecated": true,
"cacheDirectory": "<rootDir>/.cache/jest",
"collectCoverage": true,
"collectCoverageFrom": [
"<rootDir>/src/**/*.ts"
],
"coverageDirectory": "coverage",
"coverageReporters": [
"text",
"html"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
},
"scripts": {
"test": "cross-env NODE_OPTIONS='--unhandled-rejections=strict' jest",
"lint": "eslint --ext .ts src test",
"clean": "rimraf dist/*",
"prebuild": "npm run clean",
"build": "tsc --project tsconfig.build.json",
"postbuild": "rimraf dist/**/*.impl.d.ts dist/typings/**/*.js*",
"prepublishOnly": "npm ci && npm run build && npm test"
},
"peerDependencies": {
"typescript": ">=3.8"
},
"devDependencies": {
"@types/jest": "26.0.23",
"@types/node": "15.6.1",
"@typescript-eslint/eslint-plugin": "4.26.0",
"@typescript-eslint/parser": "4.26.0",
"cross-env": "7.0.3",
"eslint": "7.27.0",
"jest": "27.0.3",
"rimraf": "3.0.2",
"ts-jest": "27.0.2",
"typescript": "4.0.7"
}
}