fix: build production version of web_common in prepare script
This commit is contained in:
parent
1c300c01b6
commit
4820ed1240
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue