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
74df2f61
Commit
74df2f61
authored
Oct 19, 2025
by
Niklas Mischkulnig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup
parent
5c78c634
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
progress.ts
packages/next/src/build/progress.ts
+4
-6
spinner.ts
packages/next/src/build/spinner.ts
+5
-5
No files found.
packages/next/src/build/progress.ts
View file @
74df2f61
...
...
@@ -68,17 +68,15 @@ export const createProgress = (total: number, label: string) => {
const
isFinished
=
curProgress
===
total
const
message
=
`
${
label
}
(
${
curProgress
}
/
${
total
}
)`
if
(
progressSpinner
&&
!
isFinished
)
{
progressSpinner
.
setText
(
message
)
}
else
{
progressSpinner
.
setText
(
message
)
progressSpinner
?.
stopAndPersist
()
progressSpinner
.
setText
(
message
)
if
(
isFinished
)
{
progressSpinner
.
stopAndPersist
()
}
}
const
clear
=
()
=>
{
if
(
pro
gressSpinner
&&
pro
cess
.
stdout
.
isTTY
&&
// Ensure only reset and clear once to avoid set operation overflow in ora
progressSpinner
.
isSpinning
)
{
...
...
packages/next/src/build/spinner.ts
View file @
74df2f61
...
...
@@ -80,7 +80,8 @@ export default function createSpinner(
}
return
spinner
}
else
{
logFn
(
prefixText
?
prefixText
+
'...'
:
text
)
text
=
`
${
Log
.
prefixes
.
info
}
${
text
}
`
logFn
(
text
)
// @ts-ignore
let
spinner
=
{
...
...
@@ -89,14 +90,13 @@ export default function createSpinner(
text
:
''
,
clear
:
''
,
setText
(
newText
:
string
)
{
logFn
(
`
${
Log
.
prefixes
.
info
}
${
newText
}
`
)
text
=
`
${
Log
.
prefixes
.
info
}
${
newText
}
`
logFn
(
text
)
},
stop
:
()
=>
spinner
,
stopAndPersist
:
()
=>
{
const
duration
=
process
.
hrtime
.
bigint
()
-
progressStart
logFn
(
`
${
Log
.
prefixes
.
event
}
${
text
}
in
${
hrtimeBigIntDurationToString
(
duration
)}
`
)
logFn
(
`
${
text
}
in
${
hrtimeBigIntDurationToString
(
duration
)}
`
)
return
spinner
!
},
}
as
ora
.
Ora
&
{
setText
:
(
text
:
string
)
=>
void
}
...
...
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