package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. "_from": "ts-custom-error@^3.2.1",
  3. "_id": "ts-custom-error@3.3.1",
  4. "_inBundle": false,
  5. "_integrity": "sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==",
  6. "_location": "/ts-custom-error",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "range",
  10. "registry": true,
  11. "raw": "ts-custom-error@^3.2.1",
  12. "name": "ts-custom-error",
  13. "escapedName": "ts-custom-error",
  14. "rawSpec": "^3.2.1",
  15. "saveSpec": null,
  16. "fetchSpec": "^3.2.1"
  17. },
  18. "_requiredBy": [
  19. "/@zxing/library"
  20. ],
  21. "_resolved": "https://mirrors.huaweicloud.com/repository/npm/ts-custom-error/-/ts-custom-error-3.3.1.tgz",
  22. "_shasum": "8bd3c8fc6b8dc8e1cb329267c45200f1e17a65d1",
  23. "_spec": "ts-custom-error@^3.2.1",
  24. "_where": "E:\\git\\2021项目\\v3-H5\\node_modules\\@zxing\\library",
  25. "author": {
  26. "name": "Adrien Gibrat",
  27. "email": "adrien.gibrat@gmail.com"
  28. },
  29. "bugs": {
  30. "url": "https://github.com/adriengibrat/ts-custom-error/issues"
  31. },
  32. "bundleDependencies": false,
  33. "config": {
  34. "commitizen": {
  35. "path": "cz-conventional-changelog"
  36. }
  37. },
  38. "deprecated": false,
  39. "description": "Extend native Error to create custom errors",
  40. "devDependencies": {
  41. "@semantic-release/changelog": "^6.0.1",
  42. "@semantic-release/git": "^10.0.1",
  43. "@types/jest": "^28.1.8",
  44. "@types/node": "^18.7.13",
  45. "commitizen": "^4.2.5",
  46. "cz-conventional-changelog": "^3.3.0",
  47. "jest": "^28.0.0",
  48. "jest-tap-reporter": "^1.9.0",
  49. "lint-staged": "^13.0.3",
  50. "microbundle": "^0.15.1",
  51. "prettier": "^2.7.1",
  52. "semantic-release": "^19.0.5",
  53. "ts-jest": "^28.0.8",
  54. "tslint": "^6.1.2",
  55. "tslint-config-prettier": "^1.18.0",
  56. "tslint-config-standard": "^9.0.0",
  57. "typescript": "^4.8.2",
  58. "uglifyjs": "^2.4.11"
  59. },
  60. "engines": {
  61. "node": ">=14.0.0"
  62. },
  63. "homepage": "https://github.com/adriengibrat/ts-custom-error#readme",
  64. "jest": {
  65. "reporters": [
  66. "jest-tap-reporter"
  67. ],
  68. "testRegex": "\\.spec\\.ts$",
  69. "transform": {
  70. "^.+\\.tsx?$": "ts-jest"
  71. },
  72. "moduleFileExtensions": [
  73. "ts",
  74. "js"
  75. ],
  76. "preset": "ts-jest",
  77. "testMatch": null
  78. },
  79. "keywords": [
  80. "custom Error",
  81. "extend",
  82. "Error"
  83. ],
  84. "license": "MIT",
  85. "lint-staged": {
  86. "*.ts": [
  87. "prettier --write",
  88. "tslint",
  89. "git add"
  90. ]
  91. },
  92. "main": "dist/custom-error.js",
  93. "mangle": {
  94. "regex": "^(?!CustomError\b).*"
  95. },
  96. "module": "dist/custom-error.mjs",
  97. "name": "ts-custom-error",
  98. "prettier": {
  99. "useTabs": true,
  100. "semi": false,
  101. "singleQuote": true,
  102. "trailingComma": "all"
  103. },
  104. "release": {
  105. "branches": [
  106. "main"
  107. ],
  108. "verifyConditions": [
  109. "@semantic-release/changelog",
  110. "@semantic-release/npm",
  111. "@semantic-release/git"
  112. ],
  113. "prepare": [
  114. "@semantic-release/changelog",
  115. "@semantic-release/npm",
  116. "@semantic-release/git"
  117. ],
  118. "publish": [
  119. "@semantic-release/npm",
  120. {
  121. "path": "@semantic-release/github",
  122. "assets": [
  123. {
  124. "path": "dist/custom-error.d.ts",
  125. "label": "Typescript typings"
  126. },
  127. {
  128. "path": "dist/custom-error.js",
  129. "label": "Common JS"
  130. },
  131. {
  132. "path": "dist/custom-error.js.map",
  133. "label": "Common JS - sourcemap"
  134. },
  135. {
  136. "path": "dist/custom-error.mjs",
  137. "label": "ES module"
  138. },
  139. {
  140. "path": "dist/custom-error.mjs.map",
  141. "label": "ES module - sourcemap"
  142. },
  143. {
  144. "path": "dist/custom-error.umd.js",
  145. "label": "UMD (minified, CDN ready)"
  146. },
  147. {
  148. "path": "dist/custom-error.umd.js.map",
  149. "label": "UMD - sourcemap"
  150. }
  151. ]
  152. }
  153. ]
  154. },
  155. "repository": {
  156. "type": "git",
  157. "url": "git+https://github.com/adriengibrat/ts-custom-error.git"
  158. },
  159. "scripts": {
  160. "build": "tsc --build tsconfig.json && microbundle build --no-compress --entry dist/src/index.js",
  161. "commit": "lint-staged && git-cz",
  162. "coverage": "jest --coverage",
  163. "dist:cleanup": "rm -rf dist/src",
  164. "minify:umd": "uglifyjs --compress --output dist/custom-error.umd.js -- dist/custom-error.umd.js",
  165. "postbuild": "npm run minify:umd && npm run types:concat && npm run dist:cleanup",
  166. "prebuild": "rm -rf dist",
  167. "start": "jest --watch --notify",
  168. "test": "jest",
  169. "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"
  170. },
  171. "types": "dist/custom-error.d.ts",
  172. "unpkg": "dist/custom-error.umd.js",
  173. "version": "3.3.1"
  174. }