Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2b5205a9
Unverified
Commit
2b5205a9
authored
May 25, 2023
by
조상현
Committed by
GitHub
May 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makeDir should use func (#50136)
Co-authored-by:
Steven
<
229881+styfle@users.noreply.github.com
>
parent
0c968b8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
index.ts
packages/create-next-app/templates/index.ts
+2
-1
No files found.
packages/create-next-app/templates/index.ts
View file @
2b5205a9
import
{
install
}
from
'../helpers/install'
import
{
install
}
from
'../helpers/install'
import
{
makeDir
}
from
'../helpers/make-dir'
import
cpy
from
'cpy'
import
cpy
from
'cpy'
import
globOrig
from
'glob'
import
globOrig
from
'glob'
...
@@ -111,7 +112,7 @@ export const installTemplate = async ({
...
@@ -111,7 +112,7 @@ export const installTemplate = async ({
}
}
if
(
srcDir
)
{
if
(
srcDir
)
{
await
fs
.
promises
.
mkdir
(
path
.
join
(
root
,
'src'
),
{
recursive
:
true
}
)
await
makeDir
(
path
.
join
(
root
,
'src'
)
)
await
Promise
.
all
(
await
Promise
.
all
(
SRC_DIR_NAMES
.
map
(
async
(
file
)
=>
{
SRC_DIR_NAMES
.
map
(
async
(
file
)
=>
{
await
fs
.
promises
await
fs
.
promises
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment