lukeed / ley

(WIP) Driver-agnostic database migrations
MIT License
259 stars 14 forks source link

Document --import tsx as alternative to tsm #37

Open karlhorky opened 8 months ago

karlhorky commented 8 months ago

Hey @lukeed, hope you're well :)

Quick PR to also mention tsx in the docs as an alternative to tsm

I would have used the --import tsx option for ESM, but that crashes with an error about requiring an ES Module

codecov-commenter commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0cf486e) 48.82% compared to head (bb29019) 48.82%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #37 +/- ## ======================================= Coverage 48.82% 48.82% ======================================= Files 2 2 Lines 213 213 ======================================= Hits 104 104 Misses 109 109 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

arxpoetica commented 2 months ago

Yup, this worked for me:

"migrate:new": "sh -c 'NODE_OPTIONS=\"--import tsx\" ley new $0 --timestamp'"