Merge fff3ebf9a3 into 1d67af1558
commit
ca08c5cfcd
|
|
@ -2,4 +2,11 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
// The CLI loads ES-module-only dependencies (chalk, inquirer) with require(),
|
||||
// which Node.js supports from 20.19 and 22.12 on.
|
||||
if (!process.features.require_module) {
|
||||
console.error(`config-sync: the CLI needs a Node.js that can require() ES modules: 20.19+ or 22.12+ (current: ${process.version}).`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
require('../dist/cli');
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@
|
|||
},
|
||||
"homepage": "https://www.pluginpal.io/plugin/config-sync",
|
||||
"engines": {
|
||||
"node": ">=20.0.0 <=24.x.x",
|
||||
"node": "^20.19.0 || >=22.12.0 <=24.x.x",
|
||||
"npm": ">=6.0.0"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
|
|
|||
Loading…
Reference in New Issue