Initial Commit
This commit is contained in:
95
packages/foundation/core/error/package.json
Normal file
95
packages/foundation/core/error/package.json
Normal file
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"name": "@suaveplan/error",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "Foundation error substrate — SuaveplanError base class, stable code registry, cause-chain traversal, Zod-validated wire format (JSON + MessagePack), redaction, OTel span-event adapter, i18n resolver hook. Zero @suaveplan/* deps.",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"./base": {
|
||||
"types": "./dist/base/suaveplan-error.d.ts",
|
||||
"default": "./dist/base/suaveplan-error.js"
|
||||
},
|
||||
"./codes": {
|
||||
"types": "./dist/codes/define-codes.d.ts",
|
||||
"default": "./dist/codes/define-codes.js"
|
||||
},
|
||||
"./causes": {
|
||||
"types": "./dist/causes/walk-causes.d.ts",
|
||||
"default": "./dist/causes/walk-causes.js"
|
||||
},
|
||||
"./serialize": {
|
||||
"types": "./dist/serialize/index.d.ts",
|
||||
"default": "./dist/serialize/index.js"
|
||||
},
|
||||
"./redact": {
|
||||
"types": "./dist/redact/sensitive.d.ts",
|
||||
"default": "./dist/redact/sensitive.js"
|
||||
},
|
||||
"./otel": {
|
||||
"types": "./dist/otel/to-span-event.d.ts",
|
||||
"default": "./dist/otel/to-span-event.js"
|
||||
},
|
||||
"./i18n": {
|
||||
"types": "./dist/i18n/resolver.d.ts",
|
||||
"default": "./dist/i18n/resolver.js"
|
||||
},
|
||||
"./wire.schemas": {
|
||||
"types": "./dist/serialize/wire.schemas.d.ts",
|
||||
"default": "./dist/serialize/wire.schemas.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"test": "vitest run --passWithNoTests",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage --passWithNoTests",
|
||||
"lint": "bunx biome check src/",
|
||||
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
||||
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
||||
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
||||
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
||||
"bench": "bun run src/__benchmarks__/serialize.bench.ts",
|
||||
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@suaveplan/types": "workspace:^",
|
||||
"tslib": "catalog:build",
|
||||
"zod": "catalog:forms"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@suaveplan/testing": "workspace:^",
|
||||
"@types/node": "catalog:",
|
||||
"@vitest/coverage-istanbul": "catalog:testing",
|
||||
"fast-check": "catalog:testing",
|
||||
"mitata": "catalog:testing",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:build",
|
||||
"vite-plugin-dts": "catalog:build",
|
||||
"vitest": "catalog:testing"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npmjs.fq.io/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user