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 ley new --ts option for .ts extension + ESM #38

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

Conversation

karlhorky
Copy link
Contributor

@karlhorky karlhorky commented Feb 6, 2024

Hey @lukeed 👋 hope you're well.

Quick PR to add a --ts option to ley new to add a .ts extension and use ESM in migrations:

$ ley new todos --ts
#=> migrations/004-todos.ts

$ cat migrations/004-todos.ts
#=> export async function up(client) {
#=> }
#=> 
#=> export async function down(client) {
#=> }

@codecov-commenter
Copy link

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

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

Files Patch % Lines
index.js 0.00% 2 Missing ⚠️

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

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #38   +/-   ##
=======================================
  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.

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.

2 participants