Skip to content

fix(cli): ensure consistent spacing for node run script#5813

Merged
chenjiahan merged 1 commit intomainfrom
cli_spacing_0811
Aug 11, 2025
Merged

fix(cli): ensure consistent spacing for node run script#5813
chenjiahan merged 1 commit intomainfrom
cli_spacing_0811

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Ensure consistent spacing for node --run script.

Before

Screenshot 2025-08-11 at 16 01 43

After

Screenshot 2025-08-11 at 16 01 34

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings August 11, 2025 08:03
@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 11, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 3303a08
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6899a3c2583ddc00091ea5fa
😎 Deploy Preview https://deploy-preview-5813--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 78 (🔴 down 6 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the spacing issue in the CLI greeting message when using node --run commands to ensure consistent output formatting across different package managers.

  • Adds detection for Node.js run script environment via NODE_RUN_SCRIPT_NAME environment variable
  • Updates the prefix logic to include a newline for node --run commands alongside existing npx and Bun handling

@chenjiahan chenjiahan merged commit cea08f1 into main Aug 11, 2025
12 checks passed
@chenjiahan chenjiahan deleted the cli_spacing_0811 branch August 11, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants