110 lines
4.1 KiB
JSON
110 lines
4.1 KiB
JSON
{
|
|
"name": "@suaveplan/api-plugin",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Plugin system foundation for the Suaveplan API — typed PluginDescriptor factory, PluginRegistry with 4-phase lifecycle (onRegister → onInit → onReady / onClose in reverse), deterministic Kahn topological sort with alphabetical tie-break, AbortSignal-enforced initTimeout/shutdownTimeout, type-safe ServiceRegistry via module augmentation, priority-ordered HookExecutor for non-lifecycle hooks, defineCodes-typed PluginError with ten PLUGIN.* codes. Universal — runs unchanged in Bun, Node, and the browser.",
|
|
"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"
|
|
}
|
|
},
|
|
"./error-codes": {
|
|
"import": {
|
|
"types": "./dist/error-codes/error-codes.d.ts",
|
|
"default": "./dist/error-codes/error-codes.js"
|
|
}
|
|
},
|
|
"./types": {
|
|
"import": {
|
|
"types": "./dist/types/api-plugin.d.ts",
|
|
"default": "./dist/types/api-plugin.js"
|
|
}
|
|
},
|
|
"./topo-sort": {
|
|
"import": {
|
|
"types": "./dist/topo-sort/topo-sort.d.ts",
|
|
"default": "./dist/topo-sort/topo-sort.js"
|
|
}
|
|
},
|
|
"./service-registry": {
|
|
"import": {
|
|
"types": "./dist/service-registry/service-registry.d.ts",
|
|
"default": "./dist/service-registry/service-registry.js"
|
|
}
|
|
},
|
|
"./context": {
|
|
"import": {
|
|
"types": "./dist/context/context.d.ts",
|
|
"default": "./dist/context/context.js"
|
|
}
|
|
},
|
|
"./hook-executor": {
|
|
"import": {
|
|
"types": "./dist/hook-executor/hook-executor.d.ts",
|
|
"default": "./dist/hook-executor/hook-executor.js"
|
|
}
|
|
},
|
|
"./define": {
|
|
"import": {
|
|
"types": "./dist/define/define.d.ts",
|
|
"default": "./dist/define/define.js"
|
|
}
|
|
},
|
|
"./registry": {
|
|
"import": {
|
|
"types": "./dist/registry/registry.d.ts",
|
|
"default": "./dist/registry/registry.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": {
|
|
"@opentelemetry/api": "catalog:observability",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/events": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"devDependencies": {
|
|
"@opentelemetry/sdk-metrics": "1.30.0",
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@vitest/coverage-istanbul": "catalog:testing",
|
|
"fast-check": "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"]
|
|
}
|