Skip to content

Commit

Permalink
fix build type
Browse files Browse the repository at this point in the history
  • Loading branch information
codehz committed Dec 4, 2023
1 parent afcbc3a commit 48366ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BunPlugin, Glob, fileURLToPath, pathToFileURL } from "bun";
import { Glob, fileURLToPath, pathToFileURL } from "bun";
import { unlink } from "node:fs/promises";
import { basename, join } from "node:path";

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

export async function build({
Expand All @@ -31,7 +31,7 @@ export async function build({
sourcemap?: "external" | "none" | "inline";
minify?: boolean;
define?: Record<string, string>;
plugins?: BunPlugin[];
plugins?: import("bun").BunPlugin[];
}) {
const entrypoints = [join(baseDir, hydrate)];
const absPageDir = join(baseDir, pageDir);
Expand Down
2 changes: 1 addition & 1 deletion scripts/dist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ await Bun.build({
sourcemap: "inline",
external: ["react", "react-dom"],
entrypoints: [...(await glob("*.ts"))],
plugins: [dts({})],
plugins: [dts()],
});

for (const file of [
Expand Down

0 comments on commit 48366ce

Please sign in to comment.