Skip to content

Commit 3f5a5dc

Browse files
committed
chore: update build config
1 parent 35842c6 commit 3f5a5dc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.config.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ export default defineBuildConfig({
66
rollup: {
77
inlineDependencies: true,
88
},
9-
externals: ["@cloudflare/workers-types", "bun", "@deno/types", "uWebSockets.js"],
9+
externals: [
10+
"@cloudflare/workers-types",
11+
"bun",
12+
"@deno/types",
13+
"uWebSockets.js",
14+
],
1015
hooks: {
1116
async "build:done"(ctx) {
1217
const entries = Object.keys(ctx.pkg.exports || {})
1318
.filter((key) => key.startsWith("./"))
1419
.map((key) => key.slice(2));
1520
for (const entry of entries) {
1621
const dst = join(ctx.options.rootDir, entry + ".d.ts");
17-
console.log(">", dst);
1822
await mkdir(dirname(dst), { recursive: true });
1923
const relativePath =
2024
("..".repeat(entry.split("/").length - 1) || ".") + `/dist/${entry}`;

0 commit comments

Comments
 (0)