feat: support plain text reporter and use seconds#714
Conversation
More templates
@ice/create-pkg
ice-npm-utils
@ice/pkg
@ice/pkg-plugin-jsx-plus
@ice/pkg-plugin-mf
commit: |
There was a problem hiding this comment.
Pull request overview
This PR updates @ice/pkg runner reporting to better suit non-interactive environments by adding a plain-text reporter, and standardizes time cost display to seconds across reporter output.
Changes:
- Switch time cost formatting from milliseconds to seconds and introduce an option to disable coloring.
- Add a
RunnerPlainTextReporterand auto-select between terminal vs plain-text reporters based on TTY/CI. - Update
buildandstartcommands to use the new reporter factory.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/pkg/src/utils.ts | Changes time formatting utilities to output seconds and adds a non-colored mode. |
| packages/pkg/src/helpers/runnerReporter.ts | Adds plain-text reporter and reporter factory; refactors options typing. |
| packages/pkg/src/commands/start.ts | Uses createRunnerReporter() instead of directly instantiating the terminal reporter. |
| packages/pkg/src/commands/build.ts | Uses createRunnerReporter() instead of directly instantiating the terminal reporter. |
| .changeset/calm-clocks-hang.md | Declares a minor bump for the new reporter/time formatting behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3e830d9 to
886fdc0
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
886fdc0 to
595a3a5
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
595a3a5 to
f892d36
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.