fityannugroho / idn-area

API that provides information about Indonesia administrative area, based on the latest official data 🇮🇩

Home Page:https://idn-area.up.railway.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.