未验证 提交 86d62afa 编写于 作者: J Joe Haddad 提交者: GitHub

Adjust Flying Shuttle message (#7522)

* Adjust Flying Shuttle message
This adjusts the flying shuttle message for when a shuttle is not found or cannot be reused to reduce confusion to the user opting into the feature.

* Tweak message
上级 e49e4427
......@@ -200,8 +200,6 @@ export class FlyingShuttle {
if (found) {
Log.info('flying shuttle is docked')
} else {
Log.info('could not locate flying shuttle')
}
return found
......@@ -298,7 +296,9 @@ export class FlyingShuttle {
const c = pageNames.length - u
Log.info(`found ${c} changed and ${u} unchanged page${u > 1 ? 's' : ''}`)
} else {
Log.warn(`flying shuttle had no pages we can reuse`)
Log.warn(
`flying shuttle is going to perform a full rebuild due to changes across all pages`
)
}
return unchangedPages
......
......@@ -29,7 +29,7 @@ describe('Flying Shuttle', () => {
stdout: true
})
const buildText = stripAnsi(stdout)
expect(buildText).toMatch(/could not locate flying shuttle/)
expect(buildText).not.toMatch(/flying shuttle is docked/)
await fs.copy(
path.join(appDir, '.next'),
path.join(appDir, '.next-first')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册