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