Skip to content

Commit d360596

Browse files
committed
COMPASS-1193: Force to production if distribution exists in pkg
1 parent 62a0fa1 commit d360596

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/setup-hadron-distribution.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ const pkg = require('../package.json');
77
if (!process.env.HADRON_DISTRIBUTION) {
88
process.env.HADRON_DISTRIBUTION = pkg.distribution || pkg.config.hadron.distributions.default;
99
}
10+
11+
if (pkg.distribution) {
12+
process.env.NODE_ENV = 'production';
13+
}

0 commit comments

Comments
 (0)