Skip to content

Commit 4942930

Browse files
committed
fix: Type entrypoints in npm package
1 parent a814a22 commit 4942930

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@denosaurs/typefetch",
3-
"version": "0.0.27",
3+
"version": "0.0.28",
44
"exports": {
55
".": "./main.ts"
66
},

scripts/npm.ts

+16-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,27 @@ await emptyDir("./npm");
66

77
await build({
88
entryPoints: [
9+
"./mod.ts",
910
{
1011
kind: "bin",
1112
name: "typefetch",
1213
path: "./main.ts",
1314
},
14-
"./types/headers.ts",
15-
"./types/json.ts",
16-
"./types/urlsearchparams.ts",
15+
{
16+
kind: "export",
17+
name: "./types/headers",
18+
path: "./types/headers.ts",
19+
},
20+
{
21+
kind: "export",
22+
name: "./types/json",
23+
path: "./types/json.ts",
24+
},
25+
{
26+
kind: "export",
27+
name: "./types/urlsearchparams",
28+
path: "./types/urlsearchparams.ts",
29+
},
1730
],
1831
filterDiagnostic: (diagnostic) => {
1932
// Ignore excessively deep and possibly infinite type errors

0 commit comments

Comments
 (0)