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

Add --mjs option to generate ESM migration #25

Merged
merged 7 commits into from
Oct 10, 2022
Merged

Add --mjs option to generate ESM migration #25

merged 7 commits into from
Oct 10, 2022

Conversation

karlhorky
Copy link
Contributor

@karlhorky karlhorky commented Feb 12, 2022

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

@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2022

Codecov Report

Base: 50.00% // Head: 48.82% // Decreases project coverage by -1.17% ⚠️

Coverage data is based on head (b1743c9) compared to base (498186a).
Patch coverage: 0.00% of modified lines in pull request are covered.

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     
Impacted Files Coverage Δ
index.js 10.65% <0.00%> (-0.56%) ⬇️
lib/util.js 100.00% <0.00%> (ø)

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
Copy link
Owner

@lukeed lukeed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks~!

@lukeed lukeed merged commit 7d99c07 into lukeed:master Oct 10, 2022
@karlhorky
Copy link
Contributor Author

Glad to help, thanks for the merge! 🙌 Opened #32 for the typo in the options property in the condition

@karlhorky karlhorky deleted the patch-3 branch October 10, 2022 20:30
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