Skip to content

Commit

Permalink
Providing the necessary overrides for Node.js to correctly import/req…
Browse files Browse the repository at this point in the history
…uire the files when used as CommonJS or ESM
  • Loading branch information
peter-murray committed Aug 9, 2021
1 parent a44bbd5 commit a061de4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -15,4 +15,6 @@ scratch.js
*.d.ts

# Distribution Files
dist
dist
!dist/cjs/package.json
!dist/esm/package.json
3 changes: 3 additions & 0 deletions dist/cjs/package.json
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}
3 changes: 3 additions & 0 deletions dist/esm/package.json
@@ -0,0 +1,3 @@
{
"type": "module"
}

0 comments on commit a061de4

Please sign in to comment.