123 lines
4.3 KiB
JSON
123 lines
4.3 KiB
JSON
{
|
|
"name": "@suaveplan/api-router",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Stage-1 contract package for the Suaveplan API plugin foundation. Defines the abstract Router interface (verb methods + use + mount + match), Request / Response host-side shapes, Zod-validated RouteOptions schema, Middleware composition helpers with insertion-point guard, RouteMatch shape, BlueGreenSlot interface for hot-reload, the frozen ROUTER_CODES registry, and the runRouterConformance harness every concrete adapter must pass.",
|
|
"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"
|
|
}
|
|
},
|
|
"./router": {
|
|
"import": {
|
|
"types": "./dist/router/index.d.ts",
|
|
"default": "./dist/router/index.js"
|
|
}
|
|
},
|
|
"./request": {
|
|
"import": {
|
|
"types": "./dist/request/index.d.ts",
|
|
"default": "./dist/request/index.js"
|
|
}
|
|
},
|
|
"./response": {
|
|
"import": {
|
|
"types": "./dist/response/index.d.ts",
|
|
"default": "./dist/response/index.js"
|
|
}
|
|
},
|
|
"./route-options": {
|
|
"import": {
|
|
"types": "./dist/route-options/index.d.ts",
|
|
"default": "./dist/route-options/index.js"
|
|
}
|
|
},
|
|
"./middleware": {
|
|
"import": {
|
|
"types": "./dist/middleware/index.d.ts",
|
|
"default": "./dist/middleware/index.js"
|
|
}
|
|
},
|
|
"./route-match": {
|
|
"import": {
|
|
"types": "./dist/route-match/index.d.ts",
|
|
"default": "./dist/route-match/index.js"
|
|
}
|
|
},
|
|
"./slot": {
|
|
"import": {
|
|
"types": "./dist/slot/index.d.ts",
|
|
"default": "./dist/slot/index.js"
|
|
}
|
|
},
|
|
"./error-codes": {
|
|
"import": {
|
|
"types": "./dist/error-codes/index.d.ts",
|
|
"default": "./dist/error-codes/index.js"
|
|
}
|
|
},
|
|
"./testing": {
|
|
"import": {
|
|
"types": "./dist/testing/index.d.ts",
|
|
"default": "./dist/testing/index.js"
|
|
}
|
|
},
|
|
"./testing/pipeline-router-conformance": {
|
|
"import": {
|
|
"types": "./dist/testing/pipeline-router-conformance/index.d.ts",
|
|
"default": "./dist/testing/pipeline-router-conformance/index.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
"lint": "bunx biome check src/ tests/",
|
|
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/ tests/",
|
|
"format": "bunx biome format --write --max-diagnostics 500 src/ tests/",
|
|
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/ tests/",
|
|
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
|
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
|
},
|
|
"dependencies": {
|
|
"@suaveplan/api-types": "workspace:^",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"devDependencies": {
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@vitest/coverage-istanbul": "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"
|
|
]
|
|
}
|