Closed moshie closed 1 year ago
Thanks @moshie for the PR, but we'd rather go with the first option.
Starting from CLI v1.0.17, you can specify a custom tsconfig.json
:
datocms profile:set
;--migrations-tsconfig
option in the datocms migrations:run
command.
Currently if you have migrations alongside a NextJS project the tsconfig in the root is automatically used.
However in a NextJS project for instance it's not setup for the datocms cli (node) so you get errors like:
It would be nice to be able to pass a path to the cli to a specific tsconfig file.
Or alternatively fallback to a default one built into the cli as I don't see people wanting to change the tsconfig anyways? < my preferred solution (I created a PR for this)