fix(frontend-shared): include `*.{js,json}` files in js-built

This commit is contained in:
zyoshoka 2024-08-30 18:35:35 +09:00
parent fae9bc89f1
commit 128a2b825b
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -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.`);
}