123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- {
- "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 <adrien.gibrat@gmail.com>",
- "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": "^18.7.13",
- "commitizen": "^4.2.5",
- "cz-conventional-changelog": "^3.3.0",
- "jest": "^28.0.0",
- "jest-tap-reporter": "^1.9.0",
- "lint-staged": "^13.0.3",
- "microbundle": "^0.15.1",
- "prettier": "^2.7.1",
- "semantic-release": "^19.0.5",
- "ts-jest": "^28.0.8",
- "tslint": "^6.1.2",
- "tslint-config-prettier": "^1.18.0",
- "tslint-config-standard": "^9.0.0",
- "typescript": "^4.8.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"
- }
- ]
- }
- ]
- },
- "__npminstall_done": true,
- "_from": "ts-custom-error@3.3.1",
- "_resolved": "https://registry.npmmirror.com/ts-custom-error/-/ts-custom-error-3.3.1.tgz"
- }
|