Replace `ts-node` with `tsx`
fityannugroho opened this issue · comments
Problem
Since idn-area-data
v3.0.0 does not support CJS, upgrading the package (#172) will cause ESM - CJS interoperability issues, especially with Prisma migration and seeder files, which have been run using ts-node
.
Solution
Use tsx
to replace ts-node
. tsx
provides better features, including better ESM -> CJS interoperability support (see the comparison) and better speed.