Skip to content

Commit 60e8c1c

Browse files
committed
fix: should fix empty project name
1 parent 358a91d commit 60e8c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/answerHandlers/name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class Name {
1818
*/
1919
static PROJECT_NAME = '';
2020
constructor(givenProjectString: string) {
21-
if (givenProjectString === '.') {
21+
if (givenProjectString === '.' || givenProjectString === '') {
2222
Name.PROJECT_PATH = process.cwd();
2323
Name.PROJECT_NAME = path.basename(process.cwd());
2424
} else {

0 commit comments

Comments
 (0)