Skip to content

Commit 41af27e

Browse files
committed
build: cjs only (esm compatible)
1 parent fd8aeb4 commit 41af27e

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

package.json

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
{
22
"name": "cloudflared",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "Cloudflared in Node.",
5-
"type": "module",
6-
"exports": {
7-
".": {
8-
"types": "./lib/lib.d.ts",
9-
"import": "./lib/lib.js",
10-
"require": "./lib/lib.cjs"
11-
}
12-
},
135
"main": "./lib/lib.js",
146
"types": "./lib/lib.d.ts",
157
"bin": "./lib/cloudflared.js",
@@ -20,7 +12,7 @@
2012
"docs": "typedoc ./src/lib.ts",
2113
"format": "prettier --write '**/*.{js,ts,jsx,tsx,json,yml,yaml,md,html}' --ignore-path .gitignore",
2214
"lint": "eslint .",
23-
"postinstall": "node scripts/postinstall.js && node lib/index.js -v"
15+
"postinstall": "node scripts/postinstall.mjs && node lib/cloudflared.js -v"
2416
},
2517
"keywords": [
2618
"cloudflared",
File renamed without changes.

tsup.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export default defineConfig((options) => ({
44
entry: ["src/*.ts"],
55
outDir: "lib",
66
target: "node14",
7-
format: ["cjs", "esm"],
87
shims: true,
98
clean: true,
109
splitting: false,

0 commit comments

Comments
 (0)