Skip to content

Commit

Permalink
makeDir should use func (#50136)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven <[email protected]>
  • Loading branch information
조상현 and styfle authored May 25, 2023
1 parent 0c968b8 commit 2b5205a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/create-next-app/templates/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { install } from '../helpers/install'
import { makeDir } from '../helpers/make-dir'

import cpy from 'cpy'
import globOrig from 'glob'
Expand Down Expand Up @@ -111,7 +112,7 @@ export const installTemplate = async ({
}

if (srcDir) {
await fs.promises.mkdir(path.join(root, 'src'), { recursive: true })
await makeDir(path.join(root, 'src'))
await Promise.all(
SRC_DIR_NAMES.map(async (file) => {
await fs.promises
Expand Down

0 comments on commit 2b5205a

Please sign in to comment.