Skip to content

Commit 48366ce

Browse files
committed
fix build type
1 parent afcbc3a commit 48366ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BunPlugin, Glob, fileURLToPath, pathToFileURL } from "bun";
1+
import { Glob, fileURLToPath, pathToFileURL } from "bun";
22
import { unlink } from "node:fs/promises";
33
import { basename, join } from "node:path";
44

@@ -11,7 +11,7 @@ function glob(
1111
pattern = "**/*.{ts,tsx,js,jsx}"
1212
): AsyncIterableIterator<string> {
1313
const glob = new Glob(pattern);
14-
return glob.scan({ cwd: path, onlyFiles: true, absolute: true })
14+
return glob.scan({ cwd: path, onlyFiles: true, absolute: true });
1515
}
1616

1717
export async function build({
@@ -31,7 +31,7 @@ export async function build({
3131
sourcemap?: "external" | "none" | "inline";
3232
minify?: boolean;
3333
define?: Record<string, string>;
34-
plugins?: BunPlugin[];
34+
plugins?: import("bun").BunPlugin[];
3535
}) {
3636
const entrypoints = [join(baseDir, hydrate)];
3737
const absPageDir = join(baseDir, pageDir);

scripts/dist.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ await Bun.build({
2020
sourcemap: "inline",
2121
external: ["react", "react-dom"],
2222
entrypoints: [...(await glob("*.ts"))],
23-
plugins: [dts({})],
23+
plugins: [dts()],
2424
});
2525

2626
for (const file of [

0 commit comments

Comments
 (0)