@@ -172,7 +172,11 @@ export async function findInstalledPlugins(
172172 try {
173173 const content = await readFile ( join ( dir , "package.json" ) , "utf8" ) ;
174174 const pkg = JSON . parse ( content ) ;
175- if ( pkg . name && pkg . name !== "pnpm" ) {
175+ if (
176+ pkg . name &&
177+ pkg . name !== "pnpm" &&
178+ ( pkg . pipelab || ( pkg . keywords && pkg . keywords . includes ( "pipelab-plugin" ) ) )
179+ ) {
176180 installed . push ( {
177181 name : pkg . name ,
178182 version : pkg . version || "0.0.0" ,
@@ -222,20 +226,12 @@ export const builtInPlugins = async (options: { context: PipelabContext }): Prom
222226 const pluginsToLoad = new Map < string , string > ( ) ; // packageName -> version
223227
224228 // Load default/native plugins by default
225- const defaultPlugins = [
226- "@pipelab/plugin-construct" ,
227- "@pipelab/plugin-filesystem" ,
228- "@pipelab/plugin-system" ,
229- "@pipelab/plugin-steam" ,
230- "@pipelab/plugin-itch" ,
231- "@pipelab/plugin-electron" ,
232- "@pipelab/plugin-discord" ,
233- "@pipelab/plugin-poki" ,
234- "@pipelab/plugin-nvpatch" ,
235- "@pipelab/plugin-tauri" ,
236- "@pipelab/plugin-minify" ,
237- "@pipelab/plugin-netlify" ,
238- ] ;
229+ const { DEFAULT_PLUGIN_IDS , DEV_ONLY_PLUGIN_IDS } = await import ( "@pipelab/shared" ) ;
230+ const defaultPlugins = [ ...DEFAULT_PLUGIN_IDS ] . map ( ( id ) => `@pipelab/plugin-${ id } ` ) ;
231+
232+ if ( isDev ) {
233+ defaultPlugins . push ( ...DEV_ONLY_PLUGIN_IDS . map ( ( id ) => `@pipelab/plugin-${ id } ` ) ) ;
234+ }
239235 for ( const name of defaultPlugins ) {
240236 pluginsToLoad . set ( name , "latest" ) ;
241237 }
0 commit comments