|
1 | 1 | { |
2 | 2 | "name": "leancloud-storage", |
3 | 3 | "version": "4.3.1", |
4 | | - "main": "./dist/node/index.js", |
| 4 | + "main": "./dist/cjs/entry/index.js", |
5 | 5 | "description": "LeanCloud JavaScript SDK.", |
6 | 6 | "repository": { |
7 | 7 | "type": "git", |
|
12 | 12 | "lint": "tsc storage.d.ts --strict", |
13 | 13 | "test": "npm run lint && npm run test:node", |
14 | 14 | "test:node": "cross-env NODE_ENV=test nyc --reporter lcov --reporter text mocha --timeout 300000 test/index.js", |
15 | | - "test:real": "cross-env NODE_ENV=test REAL_BACKEND=1 nyc --reporter lcov --reporter text mocha --timeout 300000 test/index.js", |
| 15 | + "test:real": "cross-env REAL_BACKEND=1 npm run test:node", |
16 | 16 | "docs": "jsdoc src README.md package.json -d docs -c .jsdocrc.json", |
17 | | - "build:node": "gulp babel-node", |
| 17 | + "build:cjs": "gulp babel-cjs", |
18 | 18 | "build:browser": "cross-env CLIENT_PLATFORM=Browser webpack --config webpack/browser.js", |
19 | | - "build:rn": "cross-env CLIENT_PLATFORM=ReactNative webpack --config webpack/rn.js", |
20 | 19 | "build:weapp": "cross-env CLIENT_PLATFORM=Weapp webpack --config webpack/weapp.js", |
21 | 20 | "build": "gulp build && npm run build:live-query", |
22 | | - "build:live-query": "export LIVE_QUERY=1 && npm run build:browser && npm run build:rn && npm run build:weapp", |
| 21 | + "build:live-query": "export LIVE_QUERY=1 && npm run build:browser && npm run build:weapp", |
23 | 22 | "prepublishOnly": "./script/check-version.js" |
24 | 23 | }, |
25 | 24 | "dependencies": { |
|
78 | 77 | "@leancloud/runtime-adapters-node": "@leancloud/runtime-adapters-browser", |
79 | 78 | "./src/utils/parse-base64.js": "./src/utils/parse-base64-browser.js", |
80 | 79 | "./src/ua/comments.js": "./src/ua/comments-browser.js", |
81 | | - "./dist/node/index.js": "./dist/av-min.js" |
| 80 | + "./dist/cjs/entry/index.js": "./dist/av-min.js" |
82 | 81 | }, |
83 | 82 | "react-native": { |
84 | | - "./dist/node/index.js": "./dist/av-rn-min.js" |
| 83 | + "./dist/cjs/entry/index.js": "./dist/av-rn-min.js" |
85 | 84 | }, |
86 | 85 | "weapp": { |
87 | 86 | "@leancloud/runtime-adapters-node": "@leancloud/runtime-adapters-weapp", |
88 | | - "./dist/node/index.js": "./dist/av-weapp-min.js" |
| 87 | + "./dist/cjs/entry/index.js": "./dist/av-weapp-min.js" |
89 | 88 | }, |
90 | 89 | "typings": "./storage.d.ts", |
91 | 90 | "types": "./storage.d.ts", |
|
0 commit comments