Skip to content

Commit e3f5eeb

Browse files
author
Kewin Polok
committed
Build always with NODE_ENV=production
1 parent fae23d9 commit e3f5eeb

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dist"
1111
],
1212
"scripts": {
13-
"build": "tsdx build",
13+
"build": "cross-env NODE_ENV=production tsdx build",
1414
"lint": "eslint .",
1515
"start": "tsdx watch",
1616
"test": "tsdx test --runInBand",
@@ -27,6 +27,7 @@
2727
"@types/uuid": "^8.3.0",
2828
"@typescript-eslint/eslint-plugin": "^3.9.0",
2929
"@typescript-eslint/parser": "^3.9.0",
30+
"cross-env": "^7.0.3",
3031
"eslint": "^7.6.0",
3132
"eslint-config-prettier": "^6.11.0",
3233
"eslint-config-standard": "^14.1.1",

yarn.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2020,6 +2020,13 @@ cosmiconfig@^6.0.0:
20202020
path-type "^4.0.0"
20212021
yaml "^1.7.2"
20222022

2023+
cross-env@^7.0.3:
2024+
version "7.0.3"
2025+
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
2026+
integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==
2027+
dependencies:
2028+
cross-spawn "^7.0.1"
2029+
20232030
cross-spawn@^6.0.0, cross-spawn@^6.0.5:
20242031
version "6.0.5"
20252032
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
@@ -2031,7 +2038,7 @@ cross-spawn@^6.0.0, cross-spawn@^6.0.5:
20312038
shebang-command "^1.2.0"
20322039
which "^1.2.9"
20332040

2034-
cross-spawn@^7.0.0, cross-spawn@^7.0.2:
2041+
cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2:
20352042
version "7.0.3"
20362043
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
20372044
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==

0 commit comments

Comments
 (0)