Skip to content

Commit

Permalink
fix: fix type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
InkoHX committed Jan 21, 2023
1 parent 5581725 commit dd240ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ Deno.copyFileSync("./LICENSE", "./npm/LICENSE");
Deno.exit(status.code);
}

await Deno.writeTextFile('./npm/edge.d.ts', 'export * from "./types/mod.js";')

const metadata = JSON.parse(
await Deno.readTextFile("./npm/package.json"),
// deno-lint-ignore no-explicit-any
Expand All @@ -94,7 +96,7 @@ Deno.copyFileSync("./LICENSE", "./npm/LICENSE");
...metadata.exports,
"./edge": {
import: {
types: "./types/mod.d.ts",
types: "./edge.d.ts",
default: "./edge.js",
},
},
Expand Down

0 comments on commit dd240ad

Please sign in to comment.