Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

Run rslib without any sub-command to trigger build.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).
Copilot AI review requested due to automatic review settings November 5, 2025 09:33
@netlify
Copy link

netlify bot commented Nov 5, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit bb4ea85
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/690b1fe2fe73640008d3148f
😎 Deploy Preview https://deploy-preview-1316--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Copy link
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 makes the build command the default command for the rslib CLI, allowing users to run rslib without explicitly specifying a sub-command.

Key changes:

  • Modified CLI to treat an empty command as build, maintaining build as an alias
  • Updated documentation in both English and Chinese to reflect the new default behavior
  • Added test coverage for running the CLI without any sub-command

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/core/src/cli/commands.ts Made build the default command by registering it with an empty string and creating a custom help formatter to display it correctly
website/docs/en/guide/basic/cli.mdx Updated English documentation to show simplified usage syntax and note that build is the default command
website/docs/zh/guide/basic/cli.mdx Updated Chinese documentation to show simplified usage syntax and note that build is the default command
tests/integration/cli/build/build.test.ts Added test case to verify that running rslib without any sub-command triggers the build command

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Timeless0911 Timeless0911 merged commit 79b47e9 into main Nov 5, 2025
16 checks passed
@Timeless0911 Timeless0911 deleted the without-commands branch November 5, 2025 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants