diff --git a/package.json b/package.json index f499106..c1a1a44 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..d945246 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "allowSyntheticDefaultImports": true, "target": "es2019", - "module": "commonjs", + "module": "ES2020", "moduleResolution": "node", "strict": true, "sourceMap": true, @@ -10,5 +10,9 @@ "skipLibCheck": true, "types": ["node"] }, + "ts-node": { + "esm": true, + "experimentalSpecifierResolution": "node" + }, "include": ["./**/*"] }