Files
storage/deno.json
glm-5.1 8c68dd6b07 feat: deno-first storage package with sqlite host and graph schemas
Scaffolded @alkdev/storage from @ade/storage_sqlite and @ade/core/graphs:
- graphs/ module: TypeBox schema types + SchemaBuilder (from @ade/core/graphs)
- sqlite/ module: Drizzle table defs, relations, injectable client (from @ade/storage_sqlite)
- pg/ module: placeholder for Postgres host
- deno.json configured for JSR with subpath exports (./graphs, ./sqlite, ./pg)
- Imports swapped: @sinclair/typebox → @alkdev/typebox, drizzle-typebox → @alkdev/drizzlebox
- Client is now injectable (no hardcoded env vars or module-level side effects)
- no-slow-types lint excluded (Drizzle generics); --allow-slow-types on publish
2026-05-28 12:19:48 +00:00

33 lines
922 B
JSON

{
"name": "@alkdev/storage",
"version": "0.1.0",
"license": "MIT",
"exports": {
".": "./mod.ts",
"./graphs": "./src/graphs/mod.ts",
"./sqlite": "./src/sqlite/mod.ts",
"./pg": "./src/pg/mod.ts"
},
"imports": {
"@alkdev/typebox": "npm:@alkdev/typebox",
"@alkdev/drizzlebox": "npm:@alkdev/drizzlebox",
"drizzle-orm": "npm:drizzle-orm",
"drizzle-orm/sqlite-core": "npm:drizzle-orm/sqlite-core",
"drizzle-orm/pg-core": "npm:drizzle-orm/pg-core",
"@libsql/client": "npm:@libsql/client",
"postgres": "npm:postgres",
"@std/assert": "jsr:@std/assert"
},
"lint": {
"rules": {
"exclude": ["no-slow-types"]
}
},
"tasks": {
"check": "deno check mod.ts src/graphs/mod.ts src/sqlite/mod.ts",
"test": "deno test --allow-all test/",
"lint": "deno lint",
"fmt": "deno fmt",
"publish:dry": "deno publish --allow-slow-types --dry-run"
}
}