File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -96,12 +96,15 @@ export async function loadPluginsFromPath({
9696 const pluginFolderPath = path . join ( pluginsPath , pluginFolder )
9797
9898 if ( fs . existsSync ( pluginFolderPath ) && fs . lstatSync ( pluginFolderPath ) . isDirectory ( ) ) {
99- if ( skipBuiltInPlugins ?. includes ( pluginFolder ) ) {
100- core . info ( `Skipping built-in plugin: ${ pluginFolder } ` )
99+ const plugin = await dynamicImport ( path . join ( pluginsPath , pluginFolder , 'index.js' ) )
100+
101+ if ( skipBuiltInPlugins ?. includes ( plugin . name ) ) {
102+ core . info ( `Skipping built-in plugin: ${ plugin . name } ` )
101103 continue
102104 }
103- core . info ( `Found plugin: ${ pluginFolder } ` )
104- plugins . push ( await dynamicImport ( path . join ( pluginsPath , pluginFolder , 'index.js' ) ) )
105+
106+ core . info ( `Found plugin: ${ plugin . name } ` )
107+ plugins . push ( plugin )
105108 }
106109 }
107110 } catch ( e ) {
You can’t perform that action at this time.
0 commit comments