central-error-codes
Version:
Centralized error codes for SDK
45 lines (44 loc) • 1.35 kB
JSON
{
"name": "central-error-codes",
"version": "0.0.7",
"description": "Centralized error codes for SDK",
"main": "./dist/typescript/ErrorCode.js",
"types": "./dist/typescript/ErrorCode.d.ts",
"scripts": {
"build-ts": "npx tsc && npm run copy-json",
"copy-json": "mkdir dist\\typescript\\errors || echo Directory already exists && copy central_error_codes\\errors\\error-codes.json dist\\typescript\\ && xcopy central_error_codes\\errors\\* dist\\typescript\\errors\\ /E /I",
"test": "node dist/typescript/test.js",
"build": "npm run build-ts",
"package": "npm pack --pack-destination dist/",
"prepublishOnly": "npm run build"
},
"exports": {
".": "./dist/typescript/ErrorCode.js",
"./package.json": "./package.json"
},
"files": [
"dist/typescript/ErrorCode.js",
"dist/typescript/ErrorCode.d.ts",
"dist/typescript/error-code.json",
"dist/typescript/errors/",
"package.json",
"README.md"
],
"repository": {
"type": "git",
"url": "test.git"
},
"keywords": [
"error-codes",
"typescript",
"error-management"
],
"author": "Snigdha Dutta",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^22.13.14",
"ts-node": "^10.9.2",
"typescript": "^5.7.3"
}
}