Skip to content

Commit

Permalink
fix: boot message should show '.' instead of '' if rootDir is cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
justinawrey committed Aug 31, 2022
1 parent 5950eff commit e8cd760
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion private/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export function bootMessage(routes: Route[], rootDir: string): void {
colors.bold(
`Serving ${colors.cyan(routes.length.toString())} ${
routes.length === 1 ? "route" : "routes"
} from directory ${colors.cyan(relativeRootDir)}:\n`,
} from directory ${
colors.cyan(relativeRootDir === "" ? "." : relativeRootDir)
}:\n`,
),
);
for (const { relativePath, parsed } of routes) {
Expand Down

0 comments on commit e8cd760

Please sign in to comment.