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