File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ export const loadPlugin = async <T>(
81
81
try {
82
82
if ( await isFile ( pathOrPackage ) ) {
83
83
return await loadPluginFromFile ( pathOrPackage ) ;
84
+ } else if ( await isDirectory ( pathOrPackage ) ) {
85
+ return await loadPluginFromPackagePath ( pathOrPackage ) ;
84
86
} else if (
85
87
await isDirectory (
86
88
join (
@@ -95,14 +97,6 @@ export const loadPlugin = async <T>(
95
97
`${ prefix } ${ pathOrPackage . replace ( prefixPattern , '' ) } `
96
98
)
97
99
) ;
98
- } else if (
99
- await isDirectory (
100
- join ( directory , pathOrPackage . replace ( prefixPattern , '' ) )
101
- )
102
- ) {
103
- return await loadPluginFromPackagePath (
104
- join ( directory , pathOrPackage . replace ( prefixPattern , '' ) )
105
- ) ;
106
100
}
107
101
} catch ( err ) {
108
102
if ( process . env . DEBUG ) {
You can’t perform that action at this time.
0 commit comments