Skip to content

Commit 78fd6ad

Browse files
committed
chore(ci): format generated types
1 parent 41c763b commit 78fd6ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/generate-postgrest-types.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ function main() {
4949
console.log('🔧 Post-processing generated types...')
5050
exec('node scripts/update-json-type.js', { cwd: POSTGREST_DIR })
5151

52+
// Format the generated file with Prettier
53+
console.log('💅 Formatting generated types with Prettier...')
54+
exec(`npx nx format`, { cwd: path.join(__dirname, '..') })
55+
5256
// Clean up Docker containers
5357
console.log('🧹 Cleaning up Docker containers...')
5458
exec('docker compose down --volumes', { cwd: DB_DIR })

0 commit comments

Comments
 (0)