mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 19:41:57 +08:00
feat: 修改文件名,更合理
This commit is contained in:
parent
05d994e50d
commit
99f85e1054
@ -2,7 +2,7 @@ import assert from 'assert';
|
||||
import * as utils from '@umijs/utils';
|
||||
import { isValidPlugin, pathToObj } from './utils/pluginUtils';
|
||||
import { EnableBy, PluginType, ServiceStage } from './enums';
|
||||
import Logger from '../logger/logger';
|
||||
import Logger from '../logger';
|
||||
// TODO
|
||||
// 标准化 logger
|
||||
export default class PluginAPI {
|
||||
|
@ -1,9 +1,9 @@
|
||||
|
||||
|
||||
import Config from './config';
|
||||
import Logger from './logger';
|
||||
import Service from './service';
|
||||
import PluginAPI from './service/pluginAPI';
|
||||
import Logger from './logger/logger';
|
||||
import { PluginType } from './service/enums';
|
||||
import { isPlugin } from './service/utils/pluginUtils';
|
||||
|
||||
|
@ -2,7 +2,7 @@ import assert from 'assert';
|
||||
import * as utils from '@umijs/utils';
|
||||
import { isValidPlugin, pathToObj } from './utils/pluginUtils';
|
||||
import { EnableBy, PluginType, ServiceStage } from './enums';
|
||||
import Logger from '../logger/logger';
|
||||
import Logger from '../logger';
|
||||
// TODO
|
||||
// 标准化 logger
|
||||
export default class PluginAPI {
|
||||
|
@ -5,7 +5,7 @@ const resolveCwd = require('resolve-cwd');
|
||||
const { name, bin } = require('../package.json');
|
||||
|
||||
const localCLI = resolveCwd.silent(`${name}/${bin.fes}`);
|
||||
if (!process.env.USE_GLOBAL_UMI && localCLI && localCLI !== __filename) {
|
||||
if (!process.env.USE_GLOBAL_FES && localCLI && localCLI !== __filename) {
|
||||
// eslint-disable-next-line
|
||||
require(localCLI);
|
||||
} else {
|
||||
|
@ -6,7 +6,6 @@ class Service extends CoreService {
|
||||
constructor(opts) {
|
||||
process.env.FES_VERSION = require('../package').version;
|
||||
process.env.FES_DIR = dirname(require.resolve('../package'));
|
||||
process.env.UMI_DIR = dirname(require.resolve('../package'));
|
||||
|
||||
super({
|
||||
...opts,
|
||||
|
Loading…
x
Reference in New Issue
Block a user