-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to only pass in NODE_OPTIONS for node18+ (#1032)
* Try using conditional for scripts * Remove NODE_OPTIONS from else * Echo the nodeversion * Try setting the node major version and testing that * Use correct variable in condition * Try a different approach * Use bash instead * Try to fix script * Add other remaining scripts
- Loading branch information
1 parent
908178e
commit 736f3fd
Showing
7 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
NODE_VERSION="$(node --version)"; | ||
NODE_VERSION_MAJOR="${NODE_VERSION:1}"; # strip the "v" prefix | ||
NODE_VERSION_MAJOR="${NODE_VERSION_MAJOR%%.*}"; #get everything before the first dot | ||
if [ "$NODE_VERSION_MAJOR" -ge "18" ]; then | ||
NODE_ENV=production ASSET_ENV=stage NODE_OPTIONS=--openssl-legacy-provider yarn webpack -c webpack.config.js | ||
else NODE_ENV=production ASSET_ENV=stage yarn webpack -c webpack.config.js | ||
fi | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
NODE_VERSION="$(node --version)"; | ||
NODE_VERSION_MAJOR="${NODE_VERSION:1}"; # strip the "v" prefix | ||
NODE_VERSION_MAJOR="${NODE_VERSION_MAJOR%%.*}"; #get everything before the first dot | ||
if [ "$NODE_VERSION_MAJOR" -ge "18" ]; then | ||
NODE_ENV=production ASSET_ENV=production NODE_OPTIONS=--openssl-legacy-provider yarn webpack -c webpack.config.js | ||
else NODE_ENV=production ASSET_ENV=production yarn webpack -c webpack.config.js | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
NODE_VERSION="$(node --version)"; | ||
NODE_VERSION_MAJOR="${NODE_VERSION:1}"; # strip the "v" prefix | ||
NODE_VERSION_MAJOR="${NODE_VERSION_MAJOR%%.*}"; #get everything before the first dot | ||
if [ "$NODE_VERSION_MAJOR" -ge "18" ]; then | ||
NODE_OPTIONS=--openssl-legacy-provider size-limit | ||
else size-limit | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
NODE_VERSION="$(node --version)"; | ||
NODE_VERSION_MAJOR="${NODE_VERSION:1}"; # strip the "v" prefix | ||
NODE_VERSION_MAJOR="${NODE_VERSION_MAJOR%%.*}"; #get everything before the first dot | ||
if [ "$NODE_VERSION_MAJOR" -ge "18" ]; then | ||
lerna run build:karma --stream && NODE_OPTIONS=--openssl-legacy-provider karma start; | ||
else lerna run build:karma --stream && karma start; | ||
fi |