Skip to content

Commit

Permalink
fix(universal_plugin): change universal plugin config path
Browse files Browse the repository at this point in the history
  • Loading branch information
fXy-during committed May 15, 2020
1 parent 8f71a08 commit f76b73b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/feflow-cli/src/core/plugin/loadUniversalPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const parseCommand = (command: string) => {

export default function loadUniversalPlugin(ctx: any): Promise<any> {
const { root, logger } = ctx;
const pluginPkg = path.resolve(root, UNIVERSAL_MODULES, UNIVERSAL_PKG_JSON);
const pluginPkg = path.resolve(root, UNIVERSAL_PKG_JSON);

if (!fs.existsSync(pluginPkg)) {
logger.debug(`${pluginPkg} is not found`);
Expand Down Expand Up @@ -118,7 +118,6 @@ export default function loadUniversalPlugin(ctx: any): Promise<any> {

const pluginDescriptions = description || `${pluginCommand} universal plugin description`;

// register universal command
ctx.commander.register(pluginCommand, pluginDescriptions, () => {
const argGroup: string[] = [];
const nativeArgs = process.argv.slice(3);
Expand All @@ -127,7 +126,6 @@ export default function loadUniversalPlugin(ctx: any): Promise<any> {
return logger.error(`universal plugin ${pluginCommand} is not supported on ${platform}`);
}
const [command, ...commandArgs] = parseCommand(commandStrFromConfig);
// deliver parameters
argGroup.push(...commandArgs);
argGroup.push(...nativeArgs);
logger.debug('command: ', command);
Expand Down

0 comments on commit f76b73b

Please sign in to comment.