Skip to content

Commit

Permalink
feat(commonjs): Added support for commonjs
Browse files Browse the repository at this point in the history
The initial conversion of the module to typescript was bundling a module that supported the ES6
import, but not the commonjs require. Added an index.js to the root and modified the package json.

re #108
  • Loading branch information
simplyspoke committed Jul 25, 2018
1 parent a6f7dab commit e4985f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./dist').default;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"npm",
"harvest"
],
"main": "dist/index.js",
"module": "dist/index.js",
"main": "./",
"typings": "dist/index.d.ts",
"files": [
"dist"
Expand Down

0 comments on commit e4985f4

Please sign in to comment.