Skip to content

fix(cli): keep logs off stdout#5207

Merged
Jungzl merged 1 commit into
unocss:mainfrom
puneetdixit200:fix/4006-cli-stdout-logs
May 22, 2026
Merged

fix(cli): keep logs off stdout#5207
Jungzl merged 1 commit into
unocss:mainfrom
puneetdixit200:fix/4006-cli-stdout-logs

Conversation

@puneetdixit200

Copy link
Copy Markdown
Contributor

Fixes #4006.

Summary:

  • route CLI progress and log output to stderr when --stdout is used
  • keep generated CSS as the only stdout payload
  • add a regression test for --stdout output separation

Testing:

  • pnpm build
  • pnpm typecheck
  • pnpm exec vitest packages-engine/cli/test/cli.test.ts --run
  • pnpm exec eslint packages-engine/cli/src/index.ts packages-engine/cli/test/cli.test.ts
  • pnpm --filter @unocss/cli run build
  • git diff --check

@puneetdixit200 puneetdixit200 requested review from antfu and zyyv as code owners May 21, 2026 11:20
@netlify

netlify Bot commented May 21, 2026

Copy link
Copy Markdown

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ee64a4a
🔍 Latest deploy log https://app.netlify.com/projects/unocss/deploys/6a0eea98448f530008a0d6bd
😎 Deploy Preview https://deploy-preview-5207--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented May 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: ee64a4a

@Jungzl Jungzl added this pull request to the merge queue May 22, 2026
Merged via the queue into unocss:main with commit 548e1c8 May 22, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@unocss/cli writes cli log to stdout which should be stderr instead

2 participants