Skip to content

Commit b982f7e

Browse files
committed
build: optimise glob usage
1 parent caac293 commit b982f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function main() {
1616
rmSync("pkg", { recursive: true });
1717
// Build the source code for a neutral platform as ESM
1818
await esbuild.build({
19-
entryPoints: [...glob("./src/*.ts"), ...glob("./src/**/*.ts")],
19+
entryPoints: glob(["./src/*.ts", "./src/**/*.ts"]),
2020
outdir: "pkg/dist-src",
2121
bundle: false,
2222
platform: "neutral",

0 commit comments

Comments
 (0)