|
29 | 29 | "http", |
30 | 30 | "rest" |
31 | 31 | ], |
32 | | - "main": "lib/cjs/index.js", |
| 32 | + "main": "lib/index.js", |
33 | 33 | "typings": "lib/cjs/arangojs.d.ts", |
34 | 34 | "browser": { |
| 35 | + "./lib/index.js": "./lib/cjs/index.js", |
35 | 36 | "./lib/cjs/util/btoa.js": "./lib/cjs/util/btoa.web.js", |
36 | 37 | "./lib/cjs/util/bytelength.js": "./lib/cjs/util/bytelength.web.js", |
37 | 38 | "./lib/cjs/util/joinPath.js": "./lib/cjs/util/joinPath.web.js", |
38 | 39 | "./lib/cjs/util/multipart.js": "./lib/cjs/util/multipart.web.js", |
39 | 40 | "./lib/cjs/util/request.js": "./lib/cjs/util/request.web.js" |
40 | 41 | }, |
41 | | - "files": ["lib/web.*", "lib/cjs/*.*", "lib/cjs/util/*.*"], |
| 42 | + "files": ["lib/*.*", "lib/cjs/*.*", "lib/cjs/util/*.*"], |
42 | 43 | "scripts": { |
43 | 44 | "test": |
44 | 45 | "mocha --growl --reporter spec --require source-map-support/register --require core-js/shim --timeout 10000 lib/cjs/test", |
|
48 | 49 | "preci": "yarn install", |
49 | 50 | "jenkins": "yarn ci -- --timeout 0 --reporter xunit-file", |
50 | 51 | "dist:cjs": "tsc -p . --outDir ./lib/cjs/ && cpy src/index.js lib/cjs/", |
| 52 | + "dist:async": |
| 53 | + "tsc -p . --outDir ./lib/async/ --target es2017 && cpy src/index.js lib/async/", |
51 | 54 | "dist:web": "webpack", |
52 | | - "dist": "rimraf lib && npm-run-all --parallel dist:*", |
| 55 | + "dist": |
| 56 | + "rimraf lib && npm-run-all --parallel dist:* && cpy src/index.all.js --rename index.js lib/", |
53 | 57 | "prepublish": "yarn dist && node -e 'require(\".\");'" |
54 | 58 | }, |
55 | 59 | "dependencies": { |
|
0 commit comments