move cloud-specific identity schema out of storage-postgres
Unified · Split
| @@ -4,7 +4,7 @@ · 3 unmodified lines | |||
| 4 | 4 | ||
| 5 | import { Context, Effect, Layer } from "effect"; | 5 | import { Context, Effect, Layer } from "effect"; |
| 6 | import { resolve } from "node:path"; | 6 | import { resolve } from "node:path"; |
| 7 | import * as sharedSchema from "@executor/storage-postgres"; | 7 | import * as sharedSchema from "@executor/storage-postgres/schema"; |
| 8 | import * as cloudSchema from "./schema"; | 8 | import * as cloudSchema from "./schema"; |
| 9 | import type { DrizzleDb } from "@executor/storage-postgres"; | 9 | import type { DrizzleDb } from "@executor/storage-postgres"; |
| 10 | 10 | ||
| @@ -4,7 +4,8 @@ · 3 unmodified lines | |||
| 4 | "private": true, | 4 | "private": true, |
| 5 | "type": "module", | 5 | "type": "module", |
| 6 | "exports": { | 6 | "exports": { |
| 7 | ".": "./src/index.ts" | 7 | ".": "./src/index.ts", |
| 8 | "./schema": "./src/schema.ts" | ||
| 8 | }, | 9 | }, |
| 9 | "dependencies": { | 10 | "dependencies": { |
| 10 | "@effect/sql": "catalog:", | 11 | "@effect/sql": "catalog:", |
| @@ -31,7 +31,6 @@ export { makePgSecretStore } from "./secret-store"; · 30 unmodified lines | |||
| 31 | export { makePgPolicyEngine } from "./policy-engine"; | 31 | export { makePgPolicyEngine } from "./policy-engine"; |
| 32 | export { encrypt, decrypt } from "./crypto"; | 32 | export { encrypt, decrypt } from "./crypto"; |
| 33 | export type { DrizzleDb } from "./types"; | 33 | export type { DrizzleDb } from "./types"; |
| 34 | export * from "./schema"; | ||
| 35 | 34 | ||
| 36 | // --------------------------------------------------------------------------- | 35 | // --------------------------------------------------------------------------- |
| 37 | // Convenience: build a full ExecutorConfig from a Drizzle DB instance | 36 | // Convenience: build a full ExecutorConfig from a Drizzle DB instance |