Fix not updating SCRIPT_VERSION variable

This commit is contained in:
redphx
2024-04-27 10:15:59 +07:00
parent 1753a2d525
commit d13f208215
2 changed files with 5 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ const postProcess = (str: string): string => {
return str;
}
const build = async (target: BuildTarget, version, config: any={}) => {
const build = async (target: BuildTarget, version: string, config: any={}) => {
console.log('-- Target:', target);
const startTime = performance.now();
@@ -47,6 +47,7 @@ const build = async (target: BuildTarget, version, config: any={}) => {
naming: outputScriptName,
define: {
'Bun.env.BUILD_TARGET': JSON.stringify(target),
'Bun.env.SCRIPT_VERSION': JSON.stringify(version),
},
});