Skip to content

Commit

Permalink
fix: add exports and type to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
bchelkowski committed Oct 16, 2023
1 parent 7e9f499 commit 613c588
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"module": "ESNext",
"module": "NodeNext",
"outDir": "../dist/esm"
},
"exclude": [
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 613c588

Please sign in to comment.