-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(builder): allow to custom CLI #4567
feat(builder): allow to custom CLI #4567
Conversation
🦋 Changeset detectedLatest commit: 3102d90 The changes in this PR will be included in the next version bump. This PR includes changesets to release 253 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4567 +/- ##
==========================================
- Coverage 57.59% 53.74% -3.86%
==========================================
Files 672 655 -17
Lines 17794 17966 +172
Branches 3876 4142 +266
==========================================
- Hits 10249 9656 -593
- Misses 6934 7652 +718
- Partials 611 658 +47 ☔ View full report in Codecov by Sentry. |
Summary
Move the builder CLI code to
@modern-js/builder
, this change allow us to custom the builder CLI.For example, we can provide an
@edenx/builder-cli
based on@modern-js/builder
.Details
🤖 Generated by Copilot at 3102d90
@modern-js/builder-cli
to@modern-js/builder
and expose acli
subpath withrunCli
anddefineConfig
functions (link, link, link, link, link)@modern-js/node-bundle-require
to dynamically require the provider module specified by the user and handle different module types (link, link)@modern-js/builder-cli
by re-exportingdefineConfig
and removingrun
(link, link)@modern-js/builder-cli
to reduce size and complexity (link)Related Issue
Checklist
pnpm run change
.