From a0b7de1679c948ed5050d12222a974e45db0eecd Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 9 Jul 2024 09:58:38 -0700 Subject: [PATCH] added @swc/core and typescript dependencies --- README.md | 9 +++++++++ package.json | 2 ++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 1e02a12..fb28b45 100644 --- a/README.md +++ b/README.md @@ -1 +1,10 @@ esm import cjs repro + +```bash +git clone https://github.com/iambumblehead/esm-import-cjs-repro.git +cd esm-import-cjs-repro +npm install +npm run test:node # pass +npm run test:tsx # pass +npm run test:swc # fail +``` diff --git a/package.json b/package.json index dbc7e86..5ba3255 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ }, "dependencies": { "babelGeneratedDoubleDefault": "file:./babelGeneratedDoubleDefault", + "typescript": "^5.5.3", "@swc-node/register": "1.10.2", + "@swc/core": "^1.6.13", "tsx": "^4.15.5" }, "scripts": {