7543366a15
- packages/schema/src/client.ts: createDb(url) -> { db, sql } drizzle/postgres-js
factory. Exposed as the ./client subpath export so the node-only driver never
leaks into client bundles.
- packages/schema/src/db.integration.test.ts: 6 tests gated behind INTEGRATION=1
(content insert/read, vault_path UNIQUE, idempotency_key UNIQUE no-double-post,
content_id FK, audit append, kill-switch upsert). Verified against Postgres 17.
- Default CI suite unchanged: integration tests skip without INTEGRATION.
Closes the Stage 2.1 DoD against a live database (unblocked by Gate 0.8).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
33 lines
769 B
JSON
33 lines
769 B
JSON
{
|
|
"name": "@stargue/schema",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./db": "./src/db.ts",
|
|
"./client": "./src/client.ts",
|
|
"./frontmatter": "./src/frontmatter.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc --noEmit",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"lint": "echo 'lint pending'",
|
|
"db:migrate": "drizzle-kit migrate",
|
|
"db:migrate:rehearse": "echo 'rehearsal script pending Stage 2.2'"
|
|
},
|
|
"dependencies": {
|
|
"zod": "^3.23.0",
|
|
"drizzle-orm": "^0.36.0",
|
|
"postgres": "^3.4.5"
|
|
},
|
|
"devDependencies": {
|
|
"drizzle-kit": "^0.28.0",
|
|
"vitest": "^2.1.0",
|
|
"typescript": "^5.7.0"
|
|
}
|
|
}
|