fix(typescript): load config written in TypeScript without the typescript package when using Bun, Deno or tsx
This commit is contained in:
parent
198aa545eb
commit
c838ffb7f3
9 changed files with 132 additions and 32 deletions
5
.changeset/breezy-sheep-yawn.md
Normal file
5
.changeset/breezy-sheep-yawn.md
Normal 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.
|
||||
5
.changeset/cool-spies-behave.md
Normal file
5
.changeset/cool-spies-behave.md
Normal 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.
|
||||
5
.changeset/tidy-shrimps-hide.md
Normal file
5
.changeset/tidy-shrimps-hide.md
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue