mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
workspace: fix engine version check
This commit is contained in:
1 parent
cca5cb895e
commit
50dc6f25b3
1 file changed
+2
-2
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
process.env.CI = true;
|
process.env.CI = true;
|
||||||
const version = process.versions.node.split('.');
|
const version = process.versions.node.split('.').map((i) => i.padStart(2, '0'));
|
||||||
version.pop();
|
version.pop();
|
||||||
if (+version.join('.') < 18.8) throw new Error('Tests only available in NodeJS>=18.8');
|
if (+version.join('.') < 18.08) throw new Error('Tests only available in NodeJS>=18.8');
|
||||||
require('hydrooj/bin/hydrooj');
|
require('hydrooj/bin/hydrooj');
|
||||||
require('./main');
|
require('./main');
|
||||||
Reference in new issue
Block a user