Skip to content

Conversation

@fi3ework
Copy link
Member

@fi3ework fi3ework commented Nov 11, 2025

Summary

other tools will know when the very first compile is done by matching this log in watch mode.

image

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings November 11, 2025 12:18
@netlify
Copy link

netlify bot commented Nov 11, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 9fe7ab6
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/6913298fd50e9a0007b59b38
😎 Deploy Preview https://deploy-preview-1330--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.

Copilot finished reviewing on behalf of fi3ework November 11, 2025 12:20
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 adds a feature to log "build complete, watching for changes..." when the first compilation finishes in watch mode, enabling external tools to detect when the initial build is ready.

  • Adds a plugin that hooks into onAfterBuild to log a success message on first compile
  • Modifies runCli test helper to capture stdout/stderr and return an object with the child process
  • Updates test to verify the new log message appears

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/core/src/cli/commands.ts Adds plugin to log completion message in watch mode after first compile
tests/scripts/shared.ts Modifies runCli to capture stdout/stderr and return wrapper object
tests/integration/cli/build-watch/build.test.ts Updates test to verify new log message and use new runCli return structure

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

@Timeless0911 Timeless0911 changed the title feat: log a flag to mark first compile done feat: log a flag to mark first compile done in watch mode Nov 12, 2025
@fi3ework fi3ework enabled auto-merge (squash) November 12, 2025 07:04
@fi3ework fi3ework merged commit 06563fd into main Nov 12, 2025
17 checks passed
@fi3ework fi3ework deleted the flag branch November 12, 2025 07:05
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.

3 participants