94 lines
3.5 KiB
JSON
94 lines
3.5 KiB
JSON
{
|
|
"name": "@suaveplan/rules",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Rule engine and validation system — async evaluator, fluent builder, 30 operators, schema/field/custom validators, serializer, optimizer; Zod boundaries, OTel surface, AbortSignal throughout",
|
|
"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" }
|
|
},
|
|
"./engine": {
|
|
"import": { "types": "./dist/engine/index.d.ts", "default": "./dist/engine/index.js" }
|
|
},
|
|
"./builder": {
|
|
"import": { "types": "./dist/builder/index.d.ts", "default": "./dist/builder/index.js" }
|
|
},
|
|
"./context": {
|
|
"import": { "types": "./dist/context/index.d.ts", "default": "./dist/context/index.js" }
|
|
},
|
|
"./actions": {
|
|
"import": { "types": "./dist/actions/index.d.ts", "default": "./dist/actions/index.js" }
|
|
},
|
|
"./events": {
|
|
"import": { "types": "./dist/events/index.d.ts", "default": "./dist/events/index.js" }
|
|
},
|
|
"./operators": {
|
|
"import": { "types": "./dist/operators/index.d.ts", "default": "./dist/operators/index.js" }
|
|
},
|
|
"./validators/schema": {
|
|
"import": { "types": "./dist/validators/schema/index.d.ts", "default": "./dist/validators/schema/index.js" }
|
|
},
|
|
"./validators/field": {
|
|
"import": { "types": "./dist/validators/field/index.d.ts", "default": "./dist/validators/field/index.js" }
|
|
},
|
|
"./validators/custom": {
|
|
"import": { "types": "./dist/validators/custom/index.d.ts", "default": "./dist/validators/custom/index.js" }
|
|
},
|
|
"./serializer": {
|
|
"import": { "types": "./dist/serializer/index.d.ts", "default": "./dist/serializer/index.js" }
|
|
},
|
|
"./optimizer": {
|
|
"import": { "types": "./dist/optimizer/index.d.ts", "default": "./dist/optimizer/index.js" }
|
|
},
|
|
"./types": {
|
|
"import": { "types": "./dist/types/index.d.ts", "default": "./dist/types/index.js" }
|
|
},
|
|
"./errors": {
|
|
"import": { "types": "./dist/errors/index.d.ts", "default": "./dist/errors/index.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",
|
|
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
|
},
|
|
"dependencies": {
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/events": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"@opentelemetry/api": "catalog:observability",
|
|
"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"]
|
|
}
|