You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are absolutely loving using code-migrate in our company, it's been a game changer for us.
But, we've hit a snag. code-migrate currently relies on ts-node to run our TypeScript code, but unfortunately it doesn't come with typescript included. This means we have to manually add it to our toolkit, and that's just not cool.
We have a proposal that we think will take code-migrate to the next level. By replacing ts-node with a runner that doesn't require typescript, such as tsx, we'll be able to streamline our workflow and make our lives so much easier.
wdyt?
The text was updated successfully, but these errors were encountered:
The initial idea for using ts-node and not providing TypeScript was:
performance is not the primary concern when running these migrations, and transpiling the migration code is relatively fast even when it happens on the fly.
TypeScript tends to break its API between minor versions and I didn't want to couple the version of code-migrate with the version of TypeScript being used.
2 years ago, when this project was created tsx was just a cool idea. by replacing ts-node, we'll be able to get the following benefits:
Faster compilation
No need to bring TypeScript
The only drawback that I see here is the install size:
After considering the install size, we should consider the following options:
switch to using babel by default for the transformations - good balance between transpilation time and install time, considering many transpilations use babel anyway
Continue to use ts-node by default
Enable an option to have a custom transpiler - the migration writer will choose their own transformation logic
Hey,
We are absolutely loving using
code-migrate
in our company, it's been a game changer for us.But, we've hit a snag.
code-migrate
currently relies onts-node
to run our TypeScript code, but unfortunately it doesn't come withtypescript
included. This means we have to manually add it to our toolkit, and that's just not cool.We have a proposal that we think will take
code-migrate
to the next level. By replacingts-node
with a runner that doesn't requiretypescript
, such astsx
, we'll be able to streamline our workflow and make our lives so much easier.wdyt?
The text was updated successfully, but these errors were encountered: