|
11 | 11 | "check-format": "prettier --check '{src,sample,perf}/**/*.{js,jsx,json,ts,tsx,html,css,md}' '*.{js,jsx,json,ts,tsx,html,css,md}'", |
12 | 12 | "lint": "eslint --ext .ts,.tsx,.js,.jsx src/ perf/", |
13 | 13 | "doc": "typedoc src/mod.ts", |
14 | | - "build": "rollup --config rollup.config.js", |
15 | | - "build-dev": "DEV=1 rollup --config rollup.config.js", |
| 14 | + "build": "rollup --config rollup.config.js && CJS=1 rollup --config rollup.config.js ", |
16 | 15 | "build:watch": "rollup --config rollup.config.js --watch", |
17 | | - "postinstall": "rm -f node_modules/fetch-mock/esm/client.d.ts && tool/get-deps.sh", |
18 | | - "prepublishOnly": "npm run lint && npm run get-repc && npm run test && rm -rf out && npm run build && npm run build-dev", |
| 16 | + "postinstall": "rm -f node_modules/fetch-mock/esm/client.d.ts", |
| 17 | + "prepublishOnly": "npm run lint && tool/get-deps.sh && npm run test && rm -rf out && npm run build", |
19 | 18 | "prepack": "npm run prepublishOnly", |
20 | | - "perf": "node perf/runner.js", |
21 | | - "get-repc": "tool/get-deps.sh" |
| 19 | + "prepare": "tool/get-deps.sh", |
| 20 | + "perf": "node perf/runner.js" |
22 | 21 | }, |
23 | 22 | "devDependencies": { |
24 | 23 | "@esm-bundle/chai": "^4.3.0", |
|
46 | 45 | "typedoc-plugin-sourcefile-url": "^1.0.6", |
47 | 46 | "typescript": "^4.2.3" |
48 | 47 | }, |
49 | | - "type": "module", |
50 | | - "module": "out/replicache.js", |
51 | | - "types": "out/replicache.js", |
| 48 | + "main": "out/replicache.js", |
| 49 | + "types": "out/replicache.d.js", |
52 | 50 | "files": [ |
53 | | - "out", |
54 | | - "tool/get-deps.sh" |
55 | | - ], |
56 | | - "exports": { |
57 | | - ".": "./out/replicache.js", |
58 | | - "./dev": "./out/replicache.dev.js" |
59 | | - } |
| 51 | + "out/replicache.js", |
| 52 | + "out/replicache.mjs", |
| 53 | + "out/replicache.wasm", |
| 54 | + "out/replicache.dev.wasm" |
| 55 | + ] |
60 | 56 | } |
0 commit comments