fix: build production version of web_common in prepare script

This commit is contained in:
LynithDev 2025-07-24 12:43:56 +02:00
parent 1c300c01b6
commit 4820ed1240

View file

@ -80,7 +80,12 @@ catch (error) {
}
consola.start('building the web_commons package...');
exec('NODE_ENV=production pnpm -w web_common build', { cwd: env.__root }, (error, stdout, stderr) => {
exec('pnpm -w web_common build', {
cwd: env.__root,
env: {
NODE_ENV: 'production',
},
}, (error, stdout, stderr) => {
if (error) {
consola.error(`web_commons build failed: ${error.message}`);
env.__exit(1);