esbuild subdir entrypoints

This commit is contained in:
jordy25519
2024-12-17 12:32:04 +08:00
parent 5cf15f5133
commit 9c6c65e921

View File

@@ -19,10 +19,10 @@ const commonConfig = {
}; };
(async () => { (async () => {
let entryPoints = await glob("./src/*.ts", { filesOnly: true }); let entryPoints = await glob("./src/**/*.ts");
await esbuild.build({ await esbuild.build({
...commonConfig, ...commonConfig,
entryPoints, entryPoints,
outdir: 'lib', outdir: 'lib',
}); });
})().catch(() => process.exit(1)); })().catch(() => process.exit(1));