Skip to content

fix: should avoid outputs conflict in projects#515

Merged
9aoy merged 1 commit intomainfrom
fix/projects-outputs
Aug 27, 2025
Merged

fix: should avoid outputs conflict in projects#515
9aoy merged 1 commit intomainfrom
fix/projects-outputs

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Aug 27, 2025

Summary

should avoid outputs conflict in projects.

Related Links

Checklist

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

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

netlify bot commented Aug 27, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 9988b5e
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68aec455809cd600089f98ae
😎 Deploy Preview https://deploy-preview-515--rstest-dev.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
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 output directory conflicts when running tests with multiple projects by ensuring each project gets its own separate output directory.

  • Updates the basic plugin to use project-specific output directories when multiple projects are configured
  • Adds comprehensive test coverage for multi-project configuration handling
  • Includes end-to-end test fixture for client package testing

Reviewed Changes

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

File Description
packages/core/src/core/plugins/basic.ts Modifies output path logic to create separate directories per project when multiple projects exist
packages/core/tests/core/rsbuild.test.ts Adds new test case verifying correct rspack config generation with multiple projects
packages/core/tests/core/snapshots/rsbuild.test.ts.snap Snapshot data for the new multi-project test case
e2e/projects/fixtures/packages/client/test/index.test.ts Simple test fixture for end-to-end testing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

},
projects: [
{
name: 'test',
Copy link

Copilot AI Aug 27, 2025

Choose a reason for hiding this comment

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

[nitpick] Both projects in the test have the same base name 'test', which may not accurately reflect real-world scenarios where projects typically have distinct names. Consider using different names like 'client' and 'server' to better test the output path generation logic.

Copilot uses AI. Check for mistakes.
@9aoy 9aoy merged commit 0523d7d into main Aug 27, 2025
19 of 27 checks passed
@9aoy 9aoy deleted the fix/projects-outputs branch August 27, 2025 09:31
@9aoy 9aoy mentioned this pull request Aug 27, 2025
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