Don't build meta.js for beta version

This commit is contained in:
redphx 2024-08-29 17:44:14 +07:00
parent 9a97053662
commit 675fc8431c

View File

@ -85,8 +85,10 @@ const build = async (target: BuildTarget, version: string, config: any={}) => {
// Save to script
await Bun.write(path, scriptHeader + result);
// Create meta file
await Bun.write(outDir + '/' + outputMetaName, txtMetaHeader.replace('[[VERSION]]', version));
// Create meta file (don't build if it's beta version)
if (!version.includes('beta')) {
await Bun.write(outDir + '/' + outputMetaName, txtMetaHeader.replace('[[VERSION]]', version));
}
// Check with ESLint
const eslint = new ESLint();