Skip to content

Commit

Permalink
fix(demo): fix cross-env script error
Browse files Browse the repository at this point in the history
  • Loading branch information
zoomchan-cxj committed Mar 21, 2023
1 parent b5e44db commit cf739c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/hippy-react-demo/scripts/env-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (result && result[1]) {
const currentVersion = result[1];
const compareResult = versionCompare(LEGACY_OPENSSL_VERSION, currentVersion);
if (compareResult >= 0) {
envPrefixStr += 'NODE_OPTIONS=--openssl-legacy-provider';
envPrefixStr += 'cross-env-os NODE_OPTIONS=--openssl-legacy-provider';
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/hippy-vue-demo/scripts/env-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (result && result[1]) {
const currentVersion = result[1];
const compareResult = versionCompare(LEGACY_OPENSSL_VERSION, currentVersion);
if (compareResult >= 0) {
envPrefixStr += 'NODE_OPTIONS=--openssl-legacy-provider';
envPrefixStr += 'cross-env-os NODE_OPTIONS=--openssl-legacy-provider';
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/hippy-vue-next-demo/scripts/env-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (result && result[1]) {
const currentVersion = result[1];
const compareResult = versionCompare(LEGACY_OPENSSL_VERSION, currentVersion);
if (compareResult >= 0) {
envPrefixStr += 'NODE_OPTIONS=--openssl-legacy-provider';
envPrefixStr += 'cross-env-os NODE_OPTIONS=--openssl-legacy-provider';
}
}

Expand Down

0 comments on commit cf739c0

Please sign in to comment.