From 128a2b825b7362f88dd5d2876a4980759052e722 Mon Sep 17 00:00:00 2001 From: zyoshoka <107108195+zyoshoka@users.noreply.github.com> Date: Fri, 30 Aug 2024 18:35:35 +0900 Subject: [PATCH] fix(frontend-shared): include `*.{js,json}` files in js-built --- packages/frontend-shared/build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/frontend-shared/build.js b/packages/frontend-shared/build.js index c525cc18b7..17b6da8d30 100644 --- a/packages/frontend-shared/build.js +++ b/packages/frontend-shared/build.js @@ -10,7 +10,7 @@ const _filename = fileURLToPath(import.meta.url); const _dirname = dirname(_filename); const _package = JSON.parse(fs.readFileSync(_dirname + '/package.json', 'utf-8')); -const entryPoints = globSync('./src/**/**.{ts,tsx}'); +const entryPoints = globSync('./js/**/**.{ts,tsx}'); /** @type {import('esbuild').BuildOptions} */ const options = { @@ -50,6 +50,8 @@ async function buildSrc() { await buildDts(); } + fs.copyFileSync('./js/emojilist.json', './js-built/emojilist.json'); + console.log(`[${_package.name}] finish building.`); }