Skip to content

Commit 9d35325

Browse files
author
EspressoTrip-v2
committed
removed module
1 parent 14f273b commit 9d35325

3 files changed

Lines changed: 8 additions & 47 deletions

File tree

package.json

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,31 @@
55
"repository": "journeyapps/https-proxy-socket",
66
"license": "MIT",
77
"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",
1010
"exports": {
1111
".": {
1212
"import": {
13-
"default": "./lib/esm/index.mjs",
13+
"default": "./lib/esm/index.js",
1414
"types": "./lib/esm/index.d.ts"
1515
},
1616
"require": {
17-
"default": "./lib/cjs/index.cjs",
17+
"default": "./lib/cjs/index.js",
1818
"types": "./lib/cjs/index.d.ts"
1919
}
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"
3220
}
3321
},
3422
"bin": {
35-
"mongo-replicas": "lib/esm/bin/mongoReplicas.mjs"
23+
"mongo-replicas": "lib/esm/bin/mongoReplicas.js"
3624
},
3725
"scripts": {
3826
"ci:publish": "changeset publish && git push --follow-tags",
3927
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
4028
"clean": "rm -rf ./lib && tsc -b --clean",
4129
"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",
4333
"test": "vitest run"
4434
},
4535
"devDependencies": {

scripts/build.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

tsconfig.cjs.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"moduleResolution": "node",
54
"module": "commonjs",
65
"outDir": "lib/cjs",
76
}

0 commit comments

Comments
 (0)