Skip to content
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

Document --import tsx as alternative to tsm #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

karlhorky
Copy link
Contributor

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

I would have used the `--import tsx` option for ESM, but that crashes with an error about requiring an ES Module
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

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

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

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@karlhorky karlhorky changed the title Document tsx/jsx as alternative Document --import tsx as alternative to tsm Feb 6, 2024
@arxpoetica
Copy link

Yup, this worked for me:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants