71 lines
2.9 KiB
JSON
71 lines
2.9 KiB
JSON
{
|
|
"name": "@suaveplan/audience-rules",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Universal audience segmentation: rule-based filtering with 14 comparison operators, AND/OR chaining, dot-notation field resolution including array indices, three refresh modes (realtime/scheduled/manual), seven predicate factories, pluggable SegmentStore with InMemorySegmentStore (Clock + IdGenerator injectable), SegmentRefresher with typed EventBus emission, Zod-validated boundaries, and AudienceRulesError with stable AUDIENCE_RULES.* code registry.",
|
|
"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/error-codes": {
|
|
"import": { "types": "./dist/error-codes/error-codes.d.ts", "default": "./dist/error-codes/error-codes.js" }
|
|
},
|
|
"./schemas/schemas": {
|
|
"import": { "types": "./dist/schemas/schemas.d.ts", "default": "./dist/schemas/schemas.js" }
|
|
},
|
|
"./store/store": {
|
|
"import": { "types": "./dist/store/store.d.ts", "default": "./dist/store/store.js" }
|
|
},
|
|
"./segment-evaluator/segment-evaluator": {
|
|
"import": { "types": "./dist/segment-evaluator/segment-evaluator.d.ts", "default": "./dist/segment-evaluator/segment-evaluator.js" }
|
|
},
|
|
"./segment-refresher/segment-refresher": {
|
|
"import": { "types": "./dist/segment-refresher/segment-refresher.d.ts", "default": "./dist/segment-refresher/segment-refresher.js" }
|
|
},
|
|
"./predicates/predicates": {
|
|
"import": { "types": "./dist/predicates/predicates.d.ts", "default": "./dist/predicates/predicates.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:^",
|
|
"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"]
|
|
}
|