1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-23 22:56:58 +09:00

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

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