Config in Typescript?

Hello, after upgrading drizzle-kit to 0.17.4 my drizzle.config.ts file stopped working. Is it now required for the config to be in JSON format? Using this: drizzle-kit generate:mysql Returns following: Error: ENOENT: no such file or directory, open 'D:\...\project\drizzle.config.json' Using this: drizzle-kit generate:mysql --config=./drizzle.config.ts Returns:
undefined:1
import type { Config } from 'drizzle-kit';
^

SyntaxError: Unexpected token i in JSON at position 0
at JSON.parse (<anonymous>)
...
undefined:1
import type { Config } from 'drizzle-kit';
^

SyntaxError: Unexpected token i in JSON at position 0
at JSON.parse (<anonymous>)
...
I would very much prefer using ts/js over json, because I'm using an environment variable in the config.
3 Replies
rphlmr ⚡
rphlmr ⚡2y ago
I guess your last drizzle kit was the one with the “push” feature? https://discord.com/channels/1043890932593987624/1083748960612659262/1091155395130691654
makaron pelnoziarnisty
Oh yeah thats true thanks
Andrii Sherman
@coldhands push Tag will be in latest soon I’m with fever now, but it’s my #1 priority right after recovery 🫡
Want results from more Discord servers?
Add your server