Skip to content

Commit

Permalink
fix: make it compatible with older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 14, 2019
1 parent 8229fd7 commit ffda923
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const dist = require('./dist')

// Make `majo` available as default export
// So that it's compatiable with majo <= 0.8
// Probably remove in the future
module.exports = dist.majo
Object.assign(module.exports, dist)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"url": "egoist/majo",
"type": "git"
},
"main": "dist/index.js",
"main": "index.js",
"types": "dist/index.d.ts",
"files": [
"index.js",
"dist"
],
"scripts": {
Expand Down

0 comments on commit ffda923

Please sign in to comment.