From 39cbd918a07fd5e0e58b841b22d25ad32b2030f8 Mon Sep 17 00:00:00 2001 From: Stephen Hanson Date: Tue, 9 May 2023 20:51:48 -0500 Subject: [PATCH] Fix issue importing ESM modules Ref: https://github.com/TypeStrong/ts-node/issues/935#issuecomment-1480408750 --- package.json | 1 + tsconfig.json | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index e038a5a..d6221a3 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.0", "description": "Monorepo for project bootstrapping CLIs", "main": "index.js", + "type": "module", "scripts": { "belt": "bin/belt", "test": "echo \"Error: no test specified\" && exit 1" diff --git a/tsconfig.json b/tsconfig.json index 678fd00..d191fe3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,5 +10,8 @@ "skipLibCheck": true, "types": ["node"] }, + "ts-node": { + "esm": true + }, "include": ["./**/*"] }