-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
98 lines (98 loc) · 2.18 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
96
97
98
{
"name": "@ch1/uid",
"version": "1.0.0",
"description": "Simple UID Generator",
"keywords": [
"CH1",
"UID",
"Universal Identifier"
],
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "https://github.com/bennett000/ch1-uid",
"homepage": "https://github.com/bennett000/ch1-uid",
"bugs": "https://github.com/bennett000/ch1-uid/issues",
"author": "dev@michaeljbennett.info",
"contributors": [],
"license": "LGPL-3.0",
"private": false,
"scripts": {
"prebuild": "rimraf ./dist",
"build": "tsc",
"postbuild": "rollup --input ./dist/index.js --sourcemap --format cjs --file ./dist/index.cjs.js",
"pretest": "rimraf ./coverage && rimraf ./dist",
"test": "jest",
"test:watch": "jest --watch"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,css,md}": [
"prettier --single-quote --write src/**/*.ts",
"git add"
]
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"**/*.{ts,tsx}",
"!**/node_modules/**",
"!**/coverage/**",
"!**/dist/**",
"!**/*.d.ts",
"!**/interfaces.ts",
"!**/index.ts"
],
"coverageDirectory": "coverage/",
"coveragePathIgnorePatterns": [
"/node_modules/",
"/coverage/",
"/dist/"
],
"coverageReporters": [
"json",
"lcov",
"text",
"html"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 90
}
},
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
},
"devDependencies": {
"@types/jest": "^23.3.1",
"@types/node": "^10.9.4",
"husky": "^1.0.0-rc.13",
"jest": "^23.5.0",
"lint-staged": "^7.2.2",
"prettier": "^1.14.2",
"rimraf": "^2.6.2",
"rollup": "^0.65.2",
"ts-jest": "^23.1.4",
"typescript": "^3.0.3"
},
"dependencies": {
"@ch1/utility": "^0.5.1"
}
}