fix(typescript): load config written in TypeScript without the typescript package when using Bun, Deno or tsx

This commit is contained in:
Joakim Carlstein 2024-02-09 13:50:16 +01:00 committed by Joakim Carlstein
parent 198aa545eb
commit c838ffb7f3
9 changed files with 132 additions and 32 deletions

View file

@ -0,0 +1,5 @@
---
'@emigrate/cli': minor
---
Make it possible to write the Emigrate configuration file in TypeScript and load it using `tsx` in a NodeJS environment by importing packages provided using the `--import` CLI option before loading the configuration file. This makes it possible to run Emigrate in production with a configuration file written in TypeScript without having the `typescript` package installed.

View file

@ -0,0 +1,5 @@
---
'@emigrate/docs': patch
---
Add note on how to write Emigrate's config using TypeScript in a production environment without having `typescript` installed.

View file

@ -0,0 +1,5 @@
---
'@emigrate/cli': patch
---
Don't use the `typescript` package for loading an Emigrate configuration file written in TypeScript in a Bun or Deno environment