diff --git a/config/tsconfig.esm.json b/config/tsconfig.esm.json index 862f026..2feb945 100644 --- a/config/tsconfig.esm.json +++ b/config/tsconfig.esm.json @@ -1,7 +1,7 @@ { "extends": "../tsconfig", "compilerOptions": { - "module": "ESNext", + "module": "NodeNext", "outDir": "../dist/esm" }, "exclude": [ diff --git a/package.json b/package.json index 715fabe..865628d 100644 --- a/package.json +++ b/package.json @@ -15,9 +15,16 @@ "bin": { "roku": "dist/cjs/src/cli/index.js" }, + "type": "module", "main": "dist/cjs/src/index.js", "module": "dist/esm/src/index.js", "types": "dist/types/index.d.js", + "exports": { + ".": { + "import": "./dist/esm/src/index.js", + "require": "./dist/commonjs/src/index.cjs" + } + }, "keywords": [ "cli", "node",