Skip to content

Commit 4820ed1

Browse files
committed
fix: build production version of web_common in prepare script
1 parent 1c300c0 commit 4820ed1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/scripts/prepare.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ catch (error) {
8080
}
8181

8282
consola.start('building the web_commons package...');
83-
exec('NODE_ENV=production pnpm -w web_common build', { cwd: env.__root }, (error, stdout, stderr) => {
83+
exec('pnpm -w web_common build', {
84+
cwd: env.__root,
85+
env: {
86+
NODE_ENV: 'production',
87+
},
88+
}, (error, stdout, stderr) => {
8489
if (error) {
8590
consola.error(`web_commons build failed: ${error.message}`);
8691
env.__exit(1);

0 commit comments

Comments
 (0)