Advice Wanted -- Moving to ESM #1080
-
I've used the generator to see what a fresh ESM compatible oclif template would look like and started the process of migrating my codebase to ESM. I have several hundred errors:
Is the best approach to use a tool like tsc-esm-fix to rewrite imports, or is there a simpler / better way? |
Beta Was this translation helpful? Give feedback.
Answered by
jpshack-at-palomar
May 21, 2024
Replies: 1 comment
-
Finished my move to ESM. I found tsc-esm-fix didn't work for me so just rewrote import statements by hand and updated bin/dev.js and bin/run.js. Also found I need to move from nyc to c8. It was more straightforward than I expected. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jpshack-at-palomar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finished my move to ESM. I found tsc-esm-fix didn't work for me so just rewrote import statements by hand and updated bin/dev.js and bin/run.js. Also found I need to move from nyc to c8. It was more straightforward than I expected.