diff --git a/build.config.ts b/build.config.ts index efe9442..4e168bd 100644 --- a/build.config.ts +++ b/build.config.ts @@ -6,7 +6,12 @@ export default defineBuildConfig({ rollup: { inlineDependencies: true, }, - externals: ["@cloudflare/workers-types", "bun", "@deno/types", "uWebSockets.js"], + externals: [ + "@cloudflare/workers-types", + "bun", + "@deno/types", + "uWebSockets.js", + ], hooks: { async "build:done"(ctx) { const entries = Object.keys(ctx.pkg.exports || {}) @@ -14,7 +19,6 @@ export default defineBuildConfig({ .map((key) => key.slice(2)); for (const entry of entries) { const dst = join(ctx.options.rootDir, entry + ".d.ts"); - console.log(">", dst); await mkdir(dirname(dst), { recursive: true }); const relativePath = ("..".repeat(entry.split("/").length - 1) || ".") + `/dist/${entry}`;