Skip to content

Commit

Permalink
chore(app-tools): remove afterDev hook judgment to ensure environment…
Browse files Browse the repository at this point in the history
…s are consistent
  • Loading branch information
2heal1 committed Oct 10, 2023
1 parent 2e089c7 commit c6f8d56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/large-schools-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/app-tools': patch
---

chore(app-tools): remove afterDev hook tty judgment to ensure development and testing environments are consistent
chore(app-tools): 移除 afterDev hook tty 判断来确保开发、测试环境行为一致
8 changes: 3 additions & 5 deletions packages/solutions/app-tools/src/analyze/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,10 @@ export default ({

builder.onDevCompileDone(async ({ isFirstCompile }) => {
const hookRunners = api.useHookRunners();
if (process.stdout.isTTY || isFirstCompile) {
hookRunners.afterDev({ isFirstCompile });
hookRunners.afterDev({ isFirstCompile });

if (isFirstCompile) {
printInstructions(hookRunners, appContext, normalizedConfig);
}
if (isFirstCompile) {
printInstructions(hookRunners, appContext, normalizedConfig);
}
});

Expand Down

0 comments on commit c6f8d56

Please sign in to comment.