Skip to content

Commit 92eb422

Browse files
deleonioCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Martin <6279703+deleonio@users.noreply.github.com>
1 parent 3f70bfd commit 92eb422

File tree

1 file changed

+3
-0
lines changed
  • packages/tools/kolibri-cli/src/migrate

1 file changed

+3
-0
lines changed

packages/tools/kolibri-cli/src/migrate/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ Target version of @public-ui/*: ${options.overwriteTargetVersion}
9292
Source folder to migrate: ${baseDir}
9393
`);
9494

95+
if (!fs.existsSync(baseDir)) {
96+
throw logAndCreateError(`The specified source folder "${baseDir}" does not exist or is inaccessible. Please check the path and try again.`);
97+
}
9598
if (!hasKolibriTags(baseDir)) {
9699
console.log(chalk.yellow(`No KoliBri components (web or React) found under "${baseDir}". Check the path or your task configuration.`));
97100
}

0 commit comments

Comments
 (0)