143 lines
4.3 KiB
JSON
143 lines
4.3 KiB
JSON
{
|
|
"name": "@suaveplan/queue-distribution",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Worker-pool distribution layer: load-balancing strategies (round-robin / least-busy / weighted), worker pool, manager with retry + health checks, in-process LocalWorker. Transport-agnostic — HTTP and worker-thread plugins ship as separate packages.",
|
|
"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"
|
|
}
|
|
},
|
|
"./errors/queue-distribution-error": {
|
|
"import": {
|
|
"types": "./dist/errors/queue-distribution-error.d.ts",
|
|
"default": "./dist/errors/queue-distribution-error.js"
|
|
}
|
|
},
|
|
"./task/task": {
|
|
"import": {
|
|
"types": "./dist/task/task.d.ts",
|
|
"default": "./dist/task/task.js"
|
|
}
|
|
},
|
|
"./worker/worker": {
|
|
"import": {
|
|
"types": "./dist/worker/worker.d.ts",
|
|
"default": "./dist/worker/worker.js"
|
|
}
|
|
},
|
|
"./worker/abstract/abstract": {
|
|
"import": {
|
|
"types": "./dist/worker/abstract/abstract.d.ts",
|
|
"default": "./dist/worker/abstract/abstract.js"
|
|
}
|
|
},
|
|
"./worker/local/local": {
|
|
"import": {
|
|
"types": "./dist/worker/local/local.d.ts",
|
|
"default": "./dist/worker/local/local.js"
|
|
}
|
|
},
|
|
"./load-balancing/base/base": {
|
|
"import": {
|
|
"types": "./dist/load-balancing/base/base.d.ts",
|
|
"default": "./dist/load-balancing/base/base.js"
|
|
}
|
|
},
|
|
"./load-balancing/round-robin/round-robin": {
|
|
"import": {
|
|
"types": "./dist/load-balancing/round-robin/round-robin.d.ts",
|
|
"default": "./dist/load-balancing/round-robin/round-robin.js"
|
|
}
|
|
},
|
|
"./load-balancing/least-busy/least-busy": {
|
|
"import": {
|
|
"types": "./dist/load-balancing/least-busy/least-busy.d.ts",
|
|
"default": "./dist/load-balancing/least-busy/least-busy.js"
|
|
}
|
|
},
|
|
"./load-balancing/weighted/weighted": {
|
|
"import": {
|
|
"types": "./dist/load-balancing/weighted/weighted.d.ts",
|
|
"default": "./dist/load-balancing/weighted/weighted.js"
|
|
}
|
|
},
|
|
"./health-checker/health-checker": {
|
|
"import": {
|
|
"types": "./dist/health-checker/health-checker.d.ts",
|
|
"default": "./dist/health-checker/health-checker.js"
|
|
}
|
|
},
|
|
"./pool/pool": {
|
|
"import": {
|
|
"types": "./dist/pool/pool.d.ts",
|
|
"default": "./dist/pool/pool.js"
|
|
}
|
|
},
|
|
"./manager/manager": {
|
|
"import": {
|
|
"types": "./dist/manager/manager.d.ts",
|
|
"default": "./dist/manager/manager.js"
|
|
}
|
|
},
|
|
"./observability/instruments": {
|
|
"import": {
|
|
"types": "./dist/observability/instruments.d.ts",
|
|
"default": "./dist/observability/instruments.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/retry": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms",
|
|
"@opentelemetry/api": "catalog:observability"
|
|
},
|
|
"devDependencies": {
|
|
"@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"
|
|
]
|
|
}
|