From 9facf4d0091e0fc5c08a02f9f87dfcb677835d63 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Fri, 15 May 2020 22:34:32 +0800 Subject: [PATCH] fix: export dist/index.js directly --- index.js | 7 ------- package.json | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 index.js diff --git a/index.js b/index.js deleted file mode 100644 index 6027713..0000000 --- a/index.js +++ /dev/null @@ -1,7 +0,0 @@ -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) diff --git a/package.json b/package.json index 0e1bcec..a6b0c43 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,9 @@ "url": "egoist/majo", "type": "git" }, - "main": "index.js", + "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ - "index.js", "dist" ], "scripts": {