@data-loom/postgrest-js
Version:
Isomorphic PostgREST client
68 lines • 2.57 kB
JSON
{
"name": "@data-loom/postgrest-js",
"version": "0.1.0",
"description": "Isomorphic PostgREST client",
"keywords": [
"postgrest",
"dataloom"
],
"license": "MIT",
"author": "Dataloom",
"files": [
"dist"
],
"main": "dist/cjs/index.js",
"module": "dist/esm/wrapper.mjs",
"exports": {
"import": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/esm/wrapper.mjs"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"types": "./dist/cjs/index.d.ts",
"scripts": {
"clean": "rimraf dist docs/v2",
"format": "prettier --write \"{src,test}/**/*.ts\" wrapper.mjs",
"format:check": "prettier --check \"{src,test}/**/*.ts\"",
"build": "run-s clean format build:*",
"build:cjs": "npx tsc -p tsconfig.json",
"build:esm": "cpy wrapper.mjs dist/esm/",
"docs": "typedoc src/index.ts --out docs/v2",
"docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
"test": "run-s format:check test:types db:clean db:run test:run db:clean && node test/smoke.cjs && node test/smoke.mjs",
"test:run": "jest --runInBand --coverage",
"test:update": "run-s db:clean db:run db:generate-test-types && jest --runInBand --updateSnapshot && run-s db:clean",
"test:types": "run-s build && tsd --files 'test/**/*.test-d.ts'",
"test:cov": "exit 0",
"lint": "exit 0",
"test:types:watch": "run-s build && tsd --files 'test/**/*.test-d.ts' --watch",
"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 && curl --location 'http://0.0.0.0:8080/generators/typescript?included_schemas=public,personal&detect_one_to_one_relationships=true' > ../types.generated.ts && sed -i 's/export type Json = .*/export type Json = unknown;/' ../types.generated.ts"
},
"dependencies": {
"@data-loom/node-fetch": "0.1.0"
},
"devDependencies": {
"@types/jest": "~29.2.4",
"cpy-cli": "^5.0.0",
"jest": "^29.6.1",
"node-abort-controller": "^3.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2",
"rimraf": "^3.0.0",
"semantic-release-plugin-update-version-in-files": "^1.1.0",
"ts-expect": "^1.3.0",
"ts-jest": "^28.0.7",
"tsd": "^0.31.2",
"type-fest": "^4.18.2",
"typedoc": "~0.23.24",
"typescript": "^4",
"wait-for-localhost-cli": "^3.0.0",
"eslint": "^8"
}
}