From 9c6c65e921c0231d9450f39aa4706a454fffb1a6 Mon Sep 17 00:00:00 2001 From: jordy25519 Date: Tue, 17 Dec 2024 12:32:04 +0800 Subject: [PATCH] esbuild subdir entrypoints --- esbuild.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esbuild.config.js b/esbuild.config.js index 6576824..b269b11 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -19,10 +19,10 @@ const commonConfig = { }; (async () => { - let entryPoints = await glob("./src/*.ts", { filesOnly: true }); + let entryPoints = await glob("./src/**/*.ts"); await esbuild.build({ ...commonConfig, entryPoints, outdir: 'lib', }); -})().catch(() => process.exit(1)); \ No newline at end of file +})().catch(() => process.exit(1));