Skip to content

Commit b74a45a

Browse files
committed
fix(cli): use path basename for project name
1 parent ec58b3e commit b74a45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/cli/src/commands/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const init = new Command()
5959
],
6060
});
6161

62-
const projectName: string = projectPath.split('/').pop();
62+
const projectName = path.basename(projectPath);
6363

6464
const spinner = ora(`Initializing ${projectName}...`).start();
6565

0 commit comments

Comments
 (0)