Skip to content

Commit

Permalink
fix(cli): correct cd command when targetPath has changed (#2488 by br…
Browse files Browse the repository at this point in the history
…adherman)

The `cd` output on a new project uses the `projectName`, but you can override the default `targetPath`, making that command incorrect.  This changes to use the `targetPath` so you can copy/paste if you changed the path and it will work
  • Loading branch information
bradherman authored Aug 8, 2023
1 parent e4dc2e6 commit 19a161e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ export default {
hr()
p2()
p2("Now get cooking! 🍽")
command(`cd ${projectName}`)
command(`cd ${targetPath}`)
if (!installDeps) command(packager.installCmd({ packagerName }))
command(`${packagerName} start`)

Expand Down

0 comments on commit 19a161e

Please sign in to comment.