Skip to content

Commit 493f26a

Browse files
authored
fix(create-app): trim package name (#150)
1 parent 885b03f commit 493f26a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/create-app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function init() {
3535
message: 'Project name:',
3636
initial: 'slidev',
3737
})
38-
targetDir = projectName
38+
targetDir = projectName.trim()
3939
}
4040
const packageName = await getValidPackageName(targetDir)
4141
const root = path.join(cwd, targetDir)

0 commit comments

Comments
 (0)