-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to run .ts
files in Programmatic
#1199
Comments
Would you like to test out this? #1187 (comment) |
Yes, i will try |
@Shinigami92
|
Are you able to create a minimal reproducible repository I can checkout? |
Could you test with
import { ... } from 'node-pg-migrate-exp' |
@aprendendofelipe It continues to work only in |
@Shinigami92
|
thx, just to set expectation, I will need to consume free-time for that, hopefully I find some time tomorrow |
looks like I did not found time "tomorrow" 😬 ... |
Description
I get this erro if a try to run typescript migrations files, generated by
node-pg-migrate -j ts create
.Its seems a ""ESM | commonJS"" problem, but in CLI i can run
.ts
directlySuggested solution
In CLI i can run
node-pg-migrate up
with passingtsconfig.json
as a flag withcompilerOptions.module: "commonjs"
to directly run.ts
files, it would be nice if i could do the same in the programmatic approachAlternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: