mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
chore: madrun: simplify
This commit is contained in:
parent
07bc9e2782
commit
061ab38b24
1 changed files with 1 additions and 10 deletions
11
.madrun.js
11
.madrun.js
|
|
@ -7,16 +7,7 @@ const testEnv = defineEnv({
|
|||
css: true,
|
||||
});
|
||||
|
||||
const is17 = /^v1[789]/.test(process.version);
|
||||
const is20 = process.version.startsWith('v2');
|
||||
|
||||
// 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 || is20) && {
|
||||
NODE_OPTIONS: '--openssl-legacy-provider',
|
||||
const buildEnv = {
|
||||
NODE_ENV: 'production',
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue