Skip to content

Commit

Permalink
Revert "feat: plugin decleare, path priority over package (#105)" (#108)
Browse files Browse the repository at this point in the history
This reverts commit 22bbc31.
  • Loading branch information
noahziheng authored Jun 15, 2022
1 parent 9cfac50 commit 5aa712d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class BasePlugin implements Plugin {
constructor(name: string, configItem: PluginConfigItem) {
this.name = name;
let importPath = configItem.path ?? '';
if (!importPath && configItem.package) {
if (configItem.package) {
importPath = path.resolve(require.resolve(`${configItem.package}/package.json`), '..');
}
if (!importPath) {
Expand Down

0 comments on commit 5aa712d

Please sign in to comment.