@xilil/error-codes
Version:
统一错误码管理库 - 支持多语言、类型安全的错误处理工具
70 lines (69 loc) • 1.8 kB
JSON
{
"name": "@xilil/error-codes",
"version": "1.10.0",
"description": "统一错误码管理库 - 支持多语言、类型安全的错误处理工具",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist/**/*",
"README.md",
"LICENSE"
],
"scripts": {
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc",
"build:esm": "tsc --module ES2020 --outDir dist/esm && node scripts/build-esm.js",
"dev": "tsc --watch",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\"",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"clean": "rimraf dist",
"prepublishOnly": "npm run clean && npm run lint && npm run test && npm run build",
"demo": "node demo.js"
},
"keywords": [
"error-codes",
"error-management",
"typescript",
"serverless",
"nodejs",
"express",
"multilingual",
"i18n",
"error-handling",
"http-status"
],
"license": "MIT",
"engines": {
"node": ">=14.0.0",
"npm": ">=6.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"eslint": "^8.37.0",
"jest": "^29.5.0",
"prettier": "^2.8.7",
"rimraf": "^5.0.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.3"
},
"publishConfig": {
"access": "public"
}
}