mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-07 07:27:06 -04:00
fix: print info message if not projects match a pattern
This commit is contained in:
@@ -162,7 +162,7 @@ export default async function run (inputArgv: string[]) {
|
||||
const allProjects = await findWorkspacePackages(wsDir, config)
|
||||
|
||||
if (!allProjects.length) {
|
||||
console.log(`No packages found in "${wsDir}"`)
|
||||
console.log(`No projects found in "${wsDir}"`)
|
||||
process.exit(0)
|
||||
return
|
||||
}
|
||||
@@ -170,6 +170,11 @@ export default async function run (inputArgv: string[]) {
|
||||
prefix: process.cwd(),
|
||||
workspaceDir: wsDir,
|
||||
})
|
||||
if (R.isEmpty(config.selectedProjectsGraph)) {
|
||||
console.log(`No projects matched the filters in "${wsDir}"`)
|
||||
process.exit(0)
|
||||
return
|
||||
}
|
||||
config.allProjects = allProjects
|
||||
config.workspaceDir = wsDir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user