-
-
Notifications
You must be signed in to change notification settings - Fork 15
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 --mjs option to generate ESM migration #25
Conversation
Codecov ReportBase: 50.00% // Head: 48.82% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #25 +/- ##
==========================================
- Coverage 50.00% 48.82% -1.18%
==========================================
Files 2 2
Lines 206 213 +7
==========================================
+ Hits 103 104 +1
- Misses 103 109 +6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks~!
Glad to help, thanks for the merge! 🙌 Opened #32 for the typo in the options property in the condition |
Hey @lukeed 👋 Hope that you are well!
A new bootcamp cohort of ours is learning how to use Ley, and I wanted to teach them to use ESM in their migration files, but
ley new
didn't support it.What do you think of this
--mjs
option in this PR? If you are open to it, I can write a docs section for it too. (an alternative name for this flag could be--esm
, but that wouldn't indicate that it will also use.mjs
files)This also avoids the tab vs spaces thing by removing any type of indentation from this file.
Closes #21