publishSheetVersion(client, versionId, validate) takes the core's sheet.check (the package never loads the module itself); anything but a publishable verdict refuses publication before the RPC: invalid_shape, not_publishable (same message as before: first error code), and validator_unavailable when the core cannot run. Tests run on the real Node core; the shape case now asserts the closed kind instead of any throw. The package no longer depends on @faunosteo/domain.
38 lines
1.0 KiB
JSON
38 lines
1.0 KiB
JSON
{
|
|
"name": "@faunosteo/supabase",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Faunosteo Supabase access layer: typed browser client, generated database types, SQL test harness",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./types": "./src/database.types.ts"
|
|
},
|
|
"scripts": {
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"lint": "eslint . --max-warnings 0",
|
|
"build": "tsc -p tsconfig.json --noEmit",
|
|
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
"assets:upload": "node scripts/upload-sheet-assets.ts"
|
|
},
|
|
"dependencies": {
|
|
"@supabase/supabase-js": "^2.100.0",
|
|
"zod": "^3.24.1"
|
|
},
|
|
"devDependencies": {
|
|
"@electric-sql/pglite": "^0.3.0",
|
|
"@faunosteo/core-wasm": "workspace:*",
|
|
"@types/node": "^20.19.41",
|
|
"eslint": "^9.17.0",
|
|
"globals": "^15.14.0",
|
|
"typescript": "^5.7.2",
|
|
"typescript-eslint": "^8.19.0",
|
|
"vitest": "^3.2.7"
|
|
}
|
|
}
|