mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
14 lines
341 B
JavaScript
Executable File
14 lines
341 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const resolveCwd = require('resolve-cwd');
|
|
|
|
const { name, bin } = require('../package.json');
|
|
|
|
const localCLI = resolveCwd.silent(`${name}/${bin.fes}`);
|
|
if (!process.env.USE_GLOBAL_FES && localCLI && localCLI !== __filename) {
|
|
// eslint-disable-next-line
|
|
require(localCLI);
|
|
} else {
|
|
require('../lib/cli');
|
|
}
|