chore: madrun: node v20

This commit is contained in:
coderaiser 2023-07-09 12:46:56 +03:00
parent 4717e035ee
commit 7aacf203a0

View file

@ -8,13 +8,14 @@ const testEnv = {
}; };
const is17 = /^v1[789]/.test(process.version); const is17 = /^v1[789]/.test(process.version);
const is20 = /^v2/.test(process.version);
// fix for ERR_OSSL_EVP_UNSUPPORTED on node v17 // fix for ERR_OSSL_EVP_UNSUPPORTED on node v17
// flag '--openssl-legacy-provider' not supported // flag '--openssl-legacy-provider' not supported
// on earlier version of node.js // on earlier version of node.js
// //
// https://stackoverflow.com/a/69746937/4536327 // https://stackoverflow.com/a/69746937/4536327
const buildEnv = is17 && { const buildEnv = (is17 || is20) && {
NODE_OPTIONS: '--openssl-legacy-provider', NODE_OPTIONS: '--openssl-legacy-provider',
}; };