-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
140 lines (140 loc) · 3.67 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"name": "ts-custom-error",
"version": "3.3.1",
"description": "Extend native Error to create custom errors",
"repository": "github:adriengibrat/ts-custom-error",
"bugs": "https://github.com/adriengibrat/ts-custom-error/issues",
"keywords": [
"custom Error",
"extend",
"Error"
],
"author": "Adrien Gibrat <[email protected]>",
"license": "MIT",
"main": "dist/custom-error.js",
"module": "dist/custom-error.mjs",
"unpkg": "dist/custom-error.umd.js",
"types": "dist/custom-error.d.ts",
"engines": {
"node": ">=14.0.0"
},
"scripts": {
"start": "jest --watch --notify",
"prebuild": "rm -rf dist",
"build": "tsc --build tsconfig.json && microbundle build --no-compress --entry dist/src/index.js",
"postbuild": "npm run minify:umd && npm run types:concat && npm run dist:cleanup",
"minify:umd": "uglifyjs --compress --output dist/custom-error.umd.js -- dist/custom-error.umd.js",
"types:concat": "cat dist/src/factory.d.ts >> dist/src/custom-error.d.ts && cat dist/src/custom-error.d.ts > dist/custom-error.d.ts && cat dist/custom-error.d.ts > dist/custom-error.umd.d.ts",
"dist:cleanup": "rm -rf dist/src",
"test": "jest",
"coverage": "jest --coverage",
"commit": "lint-staged && git-cz"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@types/jest": "^28.1.8",
"@types/node": "^22.1.0",
"commitizen": "^4.2.5",
"cz-conventional-changelog": "^3.3.0",
"jest": "^28.0.0",
"jest-tap-reporter": "^1.9.0",
"lint-staged": "^15.0.2",
"microbundle": "^0.15.1",
"prettier": "^3.0.0",
"semantic-release": "^24.0.0",
"ts-jest": "^28.0.8",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0",
"tslint-config-standard": "^9.0.0",
"typescript": "^5.0.2",
"uglifyjs": "^2.4.11"
},
"mangle": {
"regex": "^(?!CustomError\b).*"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"prettier": {
"useTabs": true,
"semi": false,
"singleQuote": true,
"trailingComma": "all"
},
"lint-staged": {
"*.ts": [
"prettier --write",
"tslint",
"git add"
]
},
"jest": {
"reporters": [
"jest-tap-reporter"
],
"testRegex": "\\.spec\\.ts$",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"moduleFileExtensions": [
"ts",
"js"
],
"preset": "ts-jest",
"testMatch": null
},
"release": {
"branches": [
"main"
],
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
],
"publish": [
"@semantic-release/npm",
{
"path": "@semantic-release/github",
"assets": [
{
"path": "dist/custom-error.d.ts",
"label": "Typescript typings"
},
{
"path": "dist/custom-error.js",
"label": "Common JS"
},
{
"path": "dist/custom-error.js.map",
"label": "Common JS - sourcemap"
},
{
"path": "dist/custom-error.mjs",
"label": "ES module"
},
{
"path": "dist/custom-error.mjs.map",
"label": "ES module - sourcemap"
},
{
"path": "dist/custom-error.umd.js",
"label": "UMD (minified, CDN ready)"
},
{
"path": "dist/custom-error.umd.js.map",
"label": "UMD - sourcemap"
}
]
}
]
}
}