File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ import chalk from "chalk"
2+ import endent from "endent"
13import { promises as fs } from "fs"
4+ import path from "path"
5+ import { logDebug } from "../../logging"
26import { runCommand } from "../../run-command"
37import { getNameVersionCombo , packages } from "../packages"
48import { Step } from "../step"
@@ -14,6 +18,14 @@ export const createNextAppStep: Step = {
1418 // Make sure directory exists to avoid error from create-next-app
1519 await fs . mkdir ( args . appName , { recursive : true } )
1620
21+ logDebug ( endent `
22+ Directory created: ${ args . appName }
23+
24+ To open the project in vscode, run:
25+
26+ ${ chalk . cyan ( `code ${ path . resolve ( args . appName ) } ` ) }
27+ ` )
28+
1729 const createNextAppArgs = [ args . appName , "--typescript" ]
1830 if ( flags [ "package-manager" ] === "npm" ) {
1931 createNextAppArgs . push ( "--use-npm" )
@@ -24,6 +36,7 @@ export const createNextAppStep: Step = {
2436 ...createNextAppArgs ,
2537 ] )
2638
39+ logDebug ( "Changing directory to" , args . appName )
2740 process . chdir ( args . appName )
2841 } ,
2942}
You can’t perform that action at this time.
0 commit comments