From c74d76540e0bd2f08e270122eefb8d5add0e14ad Mon Sep 17 00:00:00 2001 From: Lengxu <407466029@qq.com> Date: Wed, 23 Feb 2022 21:00:26 +0800 Subject: [PATCH] Fix create-next-app Multiple calls to the function 'makeDir' (#34669) This PR fixes the Fix the create-next-app Multiple calls to the function 'makeDir'. Currently, no execution errors are generated, but redundant execution exists. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` --- packages/create-next-app/create-app.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/create-next-app/create-app.ts b/packages/create-next-app/create-app.ts index eb7c0cf14175..be342000dd72 100644 --- a/packages/create-next-app/create-app.ts +++ b/packages/create-next-app/create-app.ts @@ -127,7 +127,6 @@ export async function createApp({ console.log(`Creating a new Next.js app in ${chalk.green(root)}.`) console.log() - await makeDir(root) process.chdir(root) if (example) {