1 | {
|
2 | "name": "ts-custom-error",
|
3 | "version": "3.2.0",
|
4 | "description": "Extend native Error to create custom errors",
|
5 | "repository": "github:adriengibrat/ts-custom-error",
|
6 | "bugs": "https://github.com/adriengibrat/ts-custom-error/issues",
|
7 | "keywords": [
|
8 | "custom Error",
|
9 | "extend",
|
10 | "Error"
|
11 | ],
|
12 | "author": "Adrien Gibrat <adrien.gibrat@gmail.com>",
|
13 | "license": "MIT",
|
14 | "main": "dist/custom-error.js",
|
15 | "module": "dist/custom-error.mjs",
|
16 | "unpkg": "dist/custom-error.umd.js",
|
17 | "types": "dist/custom-error.d.ts",
|
18 | "engines": {
|
19 | "node": ">=8.0.0"
|
20 | },
|
21 | "scripts": {
|
22 | "start": "jest --watch --notify",
|
23 | "prebuild": "rm --recursive --force dist",
|
24 | "build": "tsc --build tsconfig.json && microbundle build --no-compress --entry dist/src/index.js",
|
25 | "postbuild": "npm run minify:umd && npm run types:concat && npm run dist:cleanup",
|
26 | "minify:umd": "uglifyjs --compress --output $npm_package_unpkg -- $npm_package_unpkg",
|
27 | "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",
|
28 | "dist:cleanup": "rm --recursive --force dist/src",
|
29 | "test": "jest",
|
30 | "coverage": "jest --coverage",
|
31 | "commit": "lint-staged && git-cz",
|
32 | "deploy": "travis-deploy-once semantic-release"
|
33 | },
|
34 | "devDependencies": {
|
35 | "@semantic-release/changelog": "^5.0.1",
|
36 | "@semantic-release/git": "^9.0.0",
|
37 | "@types/jest": "^25.2.3",
|
38 | "@types/node": "^14.0.4",
|
39 | "commitizen": "^4.1.2",
|
40 | "cz-conventional-changelog": "^3.2.0",
|
41 | "jest": "^26.0.1",
|
42 | "jest-tap-reporter": "^1.9.0",
|
43 | "lint-staged": "^10.2.4",
|
44 | "microbundle": "^0.11.0",
|
45 | "prettier": "^2.0.5",
|
46 | "semantic-release": "^17.0.7",
|
47 | "travis-deploy-once": "^5.0.11",
|
48 | "ts-jest": "^26.0.0",
|
49 | "tslint": "^6.1.2",
|
50 | "tslint-config-prettier": "^1.18.0",
|
51 | "tslint-config-standard": "^9.0.0",
|
52 | "typescript": "^3.9.3",
|
53 | "uglifyjs": "^2.4.11"
|
54 | },
|
55 | "mangle": {
|
56 | "regex": "^(?!CustomError\b).*"
|
57 | },
|
58 | "config": {
|
59 | "commitizen": {
|
60 | "path": "cz-conventional-changelog"
|
61 | }
|
62 | },
|
63 | "prettier": {
|
64 | "useTabs": true,
|
65 | "semi": false,
|
66 | "singleQuote": true,
|
67 | "trailingComma": "all"
|
68 | },
|
69 | "lint-staged": {
|
70 | "*.ts": [
|
71 | "prettier --write",
|
72 | "tslint",
|
73 | "git add"
|
74 | ]
|
75 | },
|
76 | "jest": {
|
77 | "reporters": [
|
78 | "jest-tap-reporter"
|
79 | ],
|
80 | "testRegex": "\\.spec\\.ts$",
|
81 | "transform": {
|
82 | "^.+\\.tsx?$": "ts-jest"
|
83 | },
|
84 | "moduleFileExtensions": [
|
85 | "ts",
|
86 | "js"
|
87 | ],
|
88 | "preset": "ts-jest",
|
89 | "testMatch": null
|
90 | },
|
91 | "release": {
|
92 | "verifyConditions": [
|
93 | "@semantic-release/changelog",
|
94 | "@semantic-release/npm",
|
95 | "@semantic-release/git"
|
96 | ],
|
97 | "prepare": [
|
98 | "@semantic-release/changelog",
|
99 | "@semantic-release/npm",
|
100 | "@semantic-release/git"
|
101 | ],
|
102 | "publish": [
|
103 | "@semantic-release/npm",
|
104 | {
|
105 | "path": "@semantic-release/github",
|
106 | "assets": [
|
107 | {
|
108 | "path": "dist/custom-error.d.ts",
|
109 | "label": "Typescript typings"
|
110 | },
|
111 | {
|
112 | "path": "dist/custom-error.js",
|
113 | "label": "Common JS"
|
114 | },
|
115 | {
|
116 | "path": "dist/custom-error.js.map",
|
117 | "label": "Common JS - sourcemap"
|
118 | },
|
119 | {
|
120 | "path": "dist/custom-error.mjs",
|
121 | "label": "ES module"
|
122 | },
|
123 | {
|
124 | "path": "dist/custom-error.mjs.map",
|
125 | "label": "ES module - sourcemap"
|
126 | },
|
127 | {
|
128 | "path": "dist/custom-error.umd.js",
|
129 | "label": "UMD (minified, CDN ready)"
|
130 | },
|
131 | {
|
132 | "path": "dist/custom-error.umd.js.map",
|
133 | "label": "UMD - sourcemap"
|
134 | }
|
135 | ]
|
136 | }
|
137 | ]
|
138 | }
|
139 | }
|