Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

Commit d0a0f16

Browse files
author
SSen
committed
fix: set default NODE_ENV value to "production" on build scripts
1 parent 0b40d52 commit d0a0f16

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

source/.packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
tag: latest
44
module: commonjs
55
'@rocket-scripts/*':
6-
version: 1.0.1
6+
version: 1.0.2
77
tag: latest
88
module: commonjs

source/src/@rocket-scripts/electron/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function build({
5252
...filterReactEnv(env),
5353
PUBLIC_PATH: publicPath,
5454
PUBLIC_URL: publicPath,
55-
NODE_ENV: env['NODE_ENV'] || 'development',
55+
NODE_ENV: env['NODE_ENV'] || 'production',
5656
};
5757

5858
const babelLoaderOptions: object = _babelLoaderOptions ?? {

source/src/@rocket-scripts/web/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function build({
4848
...filterReactEnv(env),
4949
PUBLIC_PATH: publicPath,
5050
PUBLIC_URL: publicPath,
51-
NODE_ENV: env['NODE_ENV'] || 'development',
51+
NODE_ENV: env['NODE_ENV'] || 'production',
5252
};
5353

5454
const babelLoaderOptions: object = _babelLoaderOptions ?? {

0 commit comments

Comments
 (0)