From 0c65208d7fdf56fd8a8c9af231863f8f160c9617 Mon Sep 17 00:00:00 2001 From: Lee Yeh Date: Tue, 7 Jan 2020 19:02:42 +0800 Subject: [PATCH] fix: remove unnecessary aliases This ensure the same AV instance when importing 'leancloud-storage' and 'leancloud-storage/live-query' w/ bundlers. see https://leanticket.cn/tickets/22655 for use case --- package.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index ef03a9c2d..7d308bd43 100644 --- a/package.json +++ b/package.json @@ -76,18 +76,15 @@ "./src/utils/localstorage.js": "./src/utils/localstorage-browser.js", "./src/utils/parse-base64.js": "./src/utils/parse-base64-browser.js", "./src/ua/comments.js": "./src/ua/comments-browser.js", - "./dist/node/index.js": "./dist/av-min.js", - "./dist/node/index-live-query.js": "./dist/av-live-query-min.js" + "./dist/node/index.js": "./dist/av-min.js" }, "react-native": { "./src/utils/localstorage.js": "./src/utils/localstorage-rn.js", - "./dist/node/index.js": "./dist/av-rn-min.js", - "./dist/node/index-live-query.js": "./dist/av-live-query-rn-min.js" + "./dist/node/index.js": "./dist/av-rn-min.js" }, "weapp": { "./src/polyfills/index.js": "./src/polyfills/index-weapp.js", - "./dist/node/index.js": "./dist/av-weapp-min.js", - "./dist/node/index-live-query.js": "./dist/av-live-query-weapp-min.js" + "./dist/node/index.js": "./dist/av-weapp-min.js" }, "typings": "./storage.d.ts", "types": "./storage.d.ts",