@supabase/postgrest-js
Version:
Isomorphic PostgREST client
75 lines (74 loc) • 2.78 kB
JSON
{
"name": "@supabase/postgrest-js",
"version": "2.89.0",
"description": "Isomorphic PostgREST client",
"keywords": [
"postgrest",
"supabase"
],
"homepage": "https://github.com/supabase/supabase-js/tree/master/packages/core/postgrest-js",
"bugs": "https://github.com/supabase/supabase-js/issues",
"license": "MIT",
"author": "Supabase",
"files": [
"dist",
"src"
],
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./dist/*": "./dist/*",
"./package.json": "./package.json"
},
"repository": {
"type": "git",
"url": "https://github.com/supabase/supabase-js.git",
"directory": "packages/core/postgrest-js"
},
"scripts": {
"build": "tsdown",
"build:watch": "tsdown --watch",
"format": "node scripts/format.js",
"format:check": "node scripts/format.js check",
"docs": "typedoc src/index.ts --out docs/v2",
"docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
"test:ci:postgrest": "npm run db:clean && npm run db:run && npm run test:run && npm run db:clean && npm run test:smoke",
"test:run": "jest --runInBand --coverage -u",
"test:smoke": "node test/smoke.cjs && node test/smoke.mjs",
"test:update": "npm run db:clean && npm run db:run && npm run db:generate-test-types && jest --runInBand --updateSnapshot && npm run db:clean",
"test:types": "tstyche",
"test:types:ci": "tstyche --target '4.7,5.5,latest'",
"test:types:watch": "chokidar 'src/**/*.ts' 'test/**/*.ts' -c 'npm run test:types'",
"type-check": "tsc --noEmit --project tsconfig.json",
"type-check:test": "tsc --noEmit --project tsconfig.test.json",
"db:clean": "cd test/db && docker compose down --volumes",
"db:run": "cd test/db && docker compose up --detach && wait-for-localhost 3000",
"db:generate-test-types": "cd test/db && docker compose up --detach && wait-for-localhost 8080 && wait-for-localhost 3000 && curl --location 'http://0.0.0.0:8080/generators/typescript?included_schemas=public,personal&detect_one_to_one_relationships=true' > ../types.generated.ts && node ../scripts/update-json-type.js && cd ../../ && npm run format"
},
"dependencies": {
"tslib": "2.8.1"
},
"devDependencies": {
"chokidar-cli": "^3.0.0",
"node-abort-controller": "^3.0.1",
"tstyche": "^4.3.0",
"type-fest": "^4.32.0",
"wait-for-localhost-cli": "^4.0.0",
"zod": "^3.25.76",
"prettier": "^2.6.2"
},
"engines": {
"node": ">=20.0.0"
}
}