|
5 | 5 | "repository": "journeyapps/https-proxy-socket", |
6 | 6 | "license": "MIT", |
7 | 7 | "type": "module", |
8 | | - "main": "./lib/cjs/index.cjs", |
9 | | - "module": "./lib/esm/index.mjs", |
| 8 | + "main": "./lib/cjs/index.js", |
| 9 | + "module": "./lib/esm/index.js", |
10 | 10 | "exports": { |
11 | 11 | ".": { |
12 | 12 | "import": { |
13 | | - "default": "./lib/esm/index.mjs", |
| 13 | + "default": "./lib/esm/index.js", |
14 | 14 | "types": "./lib/esm/index.d.ts" |
15 | 15 | }, |
16 | 16 | "require": { |
17 | | - "default": "./lib/cjs/index.cjs", |
| 17 | + "default": "./lib/cjs/index.js", |
18 | 18 | "types": "./lib/cjs/index.d.ts" |
19 | 19 | } |
20 | | - }, |
21 | | - "./HttpsProxySocket": { |
22 | | - "require": "./lib/cjs/HttpsProxySocket.cjs", |
23 | | - "import": "./lib/esm/HttpsProxySocket.mjs" |
24 | | - }, |
25 | | - "./tediousPatch": { |
26 | | - "require": "./lib/cjs/tediousPatch.cjs", |
27 | | - "import": "./lib/esm/tediousPatch.mjs" |
28 | | - }, |
29 | | - "./mongoPatch": { |
30 | | - "require": "./lib/cjs/mongoPatch.cjs", |
31 | | - "import": "./lib/esm/mongoPatch.mjs" |
32 | 20 | } |
33 | 21 | }, |
34 | 22 | "bin": { |
35 | | - "mongo-replicas": "lib/esm/bin/mongoReplicas.mjs" |
| 23 | + "mongo-replicas": "lib/esm/bin/mongoReplicas.js" |
36 | 24 | }, |
37 | 25 | "scripts": { |
38 | 26 | "ci:publish": "changeset publish && git push --follow-tags", |
39 | 27 | "ci:version": "changeset version && pnpm install --no-frozen-lockfile", |
40 | 28 | "clean": "rm -rf ./lib && tsc -b --clean", |
41 | 29 | "clean:modules": "rm -rf node_modules", |
42 | | - "build": "node scripts/build.js", |
| 30 | + "build:esm": "tsc -p tsconfig.esm.json", |
| 31 | + "build:cjs": "tsc -p tsconfig.cjs.json", |
| 32 | + "build": "pnpm build:esm && pnpm build:cjs", |
43 | 33 | "test": "vitest run" |
44 | 34 | }, |
45 | 35 | "devDependencies": { |
|
0 commit comments