You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(chalk.yellow(`Could not load ${chalk.bold(dir)} package. Skipping it...\n`))
226
+
227
+
returnundefined
228
+
}
229
+
230
+
const{folder, packageJson}=loadedPackage
231
+
constscope=dir.replace('plugin-','')
223
232
224
-
constscope=dir.replace('plugin-','')
233
+
try{
225
234
constcommands=findCommands(folder,scope)
226
235
227
236
return{
@@ -231,9 +240,11 @@ const pluginPackages = fs
231
240
commands,
232
241
}
233
242
}catch{
234
-
console.log(chalk.yellow(`Could not load ${chalk.bold(dir)} package. Skipping it...\n`))
235
-
236
-
returnundefined
243
+
console.log(chalk.bold.red(`Invalid state for ${folder}.`))
244
+
console.log(
245
+
`Did you recently run ${chalk.bold(`bin/init-package.sh ${scope}`)}? Please either run ${chalk.bold(`bin/migrate.sh ${scope}`)} and finish the migration, or complete the structure of the plugin before merging your PR.`
0 commit comments