From 675fc8431cac2f84166c62434946f5ead1b163e4 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:44:14 +0700 Subject: [PATCH] Don't build meta.js for beta version --- build.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.ts b/build.ts index 2638f19..140d052 100644 --- a/build.ts +++ b/build.ts @@ -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();