Skip to content

Commit c17a542

Browse files
committed
Merge branch 'master' into feat/add-embeded-functions-type-inference
2 parents f1fa9b4 + 823f28f commit c17a542

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@
3737
"build:esm": "cpy wrapper.mjs dist/esm/",
3838
"docs": "typedoc src/index.ts --out docs/v2",
3939
"docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
40-
"test": "run-s format:check test:types db:clean db:run test:run db:clean && node test/smoke.cjs && node test/smoke.mjs",
40+
"test": "run-s format:check test:types db:clean db:run test:generated-types test:run db:clean && node test/smoke.cjs && node test/smoke.mjs",
4141
"test:run": "jest --runInBand --coverage",
42+
"test:generated-types": "run-s db:generate-test-types && git diff --exit-code test/types.generated.ts || (echo '❌ Generated types are not up to date. Run npm run db:generate-test-types.' && exit 1)",
4243
"test:update": "run-s db:clean db:run db:generate-test-types && jest --runInBand --updateSnapshot && run-s db:clean",
4344
"test:types": "run-s build && tsd --files 'test/**/*.test*.ts'",
4445
"test:types:watch": "chokidar 'src/**/*.ts' 'test/**/*.ts' -c 'npm run test:types'",
4546
"type-check": "tsc --noEmit --project tsconfig.json",
4647
"type-check:test": "tsc --noEmit --project tsconfig.test.json",
4748
"db:clean": "cd test/db && docker compose down --volumes",
4849
"db:run": "cd test/db && docker compose up --detach && wait-for-localhost 3000",
49-
"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 && node ../scripts/update-json-type.js"
50+
"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 && node ../scripts/update-json-type.js && prettier --write ../types.generated.ts"
5051
},
5152
"dependencies": {
5253
"@supabase/node-fetch": "^2.6.14"

test/scripts/update-json-type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ if (require.main === module) {
3535
updateJsonType();
3636
}
3737

38-
module.exports = { updateJsonType };
38+
module.exports = { updateJsonType };

0 commit comments

Comments
 (0)