From dd240ade430af71e09075ab97f480dc104d7c0a9 Mon Sep 17 00:00:00 2001 From: InkoHX Date: Sat, 21 Jan 2023 20:53:57 +0900 Subject: [PATCH] fix: fix type definition --- build.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.ts b/build.ts index 930a4d2..0fc2c28 100644 --- a/build.ts +++ b/build.ts @@ -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 @@ -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", }, },