Skip to content

Commit

Permalink
fix: Type entrypoints in npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Sep 24, 2024
1 parent a814a22 commit 4942930
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@denosaurs/typefetch",
"version": "0.0.27",
"version": "0.0.28",
"exports": {
".": "./main.ts"
},
Expand Down
19 changes: 16 additions & 3 deletions scripts/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,27 @@ await emptyDir("./npm");

await build({
entryPoints: [
"./mod.ts",
{
kind: "bin",
name: "typefetch",
path: "./main.ts",
},
"./types/headers.ts",
"./types/json.ts",
"./types/urlsearchparams.ts",
{
kind: "export",
name: "./types/headers",
path: "./types/headers.ts",
},
{
kind: "export",
name: "./types/json",
path: "./types/json.ts",
},
{
kind: "export",
name: "./types/urlsearchparams",
path: "./types/urlsearchparams.ts",
},
],
filterDiagnostic: (diagnostic) => {
// Ignore excessively deep and possibly infinite type errors
Expand Down

0 comments on commit 4942930

Please sign in to comment.