Skip to content

Commit 26f6873

Browse files
committed
Fix formatting nitpicks for new Node fix
1 parent b71554a commit 26f6873

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

automation/ts-node.env.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
let env_vars = {
2-
TS_NODE_PROJECT:'./automation/tsconfig.json',
3-
TS_NODE_FILES:true
1+
module.exports = {
2+
TS_NODE_PROJECT: './automation/tsconfig.json',
3+
TS_NODE_FILES: true
44
};
5-
if (process.version.match(/^v(\d+)/)[1]>16)
6-
env_vars['NODE_OPTIONS']='--openssl-legacy-provider';
7-
module.exports = env_vars;
5+
6+
// WebPack 4 and some other details require old OpenSSL providers when
7+
// running in Node v17+:
8+
if (process.version.match(/^v(\d+)/)[1] > 16) {
9+
module.exports['NODE_OPTIONS'] = '--openssl-legacy-provider';
10+
}

0 commit comments

Comments
 (0)