-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(cli): Add check-client command to verify bundle freshness #7517
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 1075962 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 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 |
commit: |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
0856f08
to
b4c6899
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, good start, but it needs to be quiet and fast, and not fancy in any way.
// Handle errors accessing the source directory | ||
if (err.code === 'ENOENT') { | ||
log.error(`Source directory '${SRC_DIR}' not found! Build might fail.`); | ||
// Decide whether to force build or exit if source directory access fails |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should exit, and also please remove all these extra comments.
Comments should only be used when the code does something difficult or unexpected. At other times, the code itself should be enough.
if (needsBuild) { | ||
log.step(yellow('Client build detected as necessary')); | ||
// Log reasons why a build is needed | ||
reasonsForBuild.forEach((reason) => log.info(` - ${reason}`)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
What is it?
fixes: #7479
This commit adds a new CLI command that checks if the client bundle is up-to-date by:
Description
Checklist
pnpm change