mmkal / pgkit

PostgreSQL🤝TypeScript monorepo. SQL client/admin UI/smart migrator/type generator/schema inspector
https://pgkit.dev
190 stars 25 forks source link

fix(tsPrettify): Error when processing .sql files #388

Closed janpaepke closed 2 years ago

janpaepke commented 2 years ago

This fixes https://github.com/mmkal/slonik-tools/issues/379

It seems typescript >4.2 doesn't like const x = new Map<string, string>() when using createSourceFile, for details see issue.

This is an easy workaround.