Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Apr 3, 2025

The watch functionality has been updated to:

  1. Remove the deprecated outdir parameter from WatchOptions
  2. Use assembly.directory instead of the hardcoded 'cdk.out' default
  3. Only exclude the outdir from watching if it's under the root directory
  4. Update tests to reflect these changes

BREAKING CHANGE: The outdir option in WatchOptions was deprecated and has been removed. Instead, the code now determines the assembly directory directly. To explicitly restore the previous behavior, you add the value to WatchOptions.exclude.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

BREAKING CHANGE: The `outdir` option in `WatchOptions` was deprecated and has been removed. Instead, the code now uses the assembly directory directly.

The watch functionality has been updated to:
1. Remove the deprecated outdir parameter from WatchOptions
2. Use assembly.directory instead of the hardcoded 'cdk.out' default
3. Only exclude the outdir from watching if it's under the root directory
4. Update tests to reflect these changes
@mrgrain mrgrain added the pr/exempt-integ-test Skips the integ test steps if set. label Apr 3, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team April 3, 2025 09:14
@github-actions github-actions bot added the p2 label Apr 3, 2025
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.39%. Comparing base (3e8359c) to head (9ef7eb7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #313      +/-   ##
==========================================
- Coverage   85.58%   85.39%   -0.19%     
==========================================
  Files         223      223              
  Lines       37002    37002              
  Branches     4493     4461      -32     
==========================================
- Hits        31668    31598      -70     
- Misses       5233     5309      +76     
+ Partials      101       95       -6     
Flag Coverage Δ
suite.unit 85.39% <ø> (-0.19%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mrgrain mrgrain disabled auto-merge April 3, 2025 10:33
@mrgrain mrgrain added this pull request to the merge queue Apr 3, 2025
Merged via the queue into main with commit 73e5ad4 Apr 3, 2025
20 checks passed
@mrgrain mrgrain deleted the mrgrain/fix/remove-watch-outdir branch April 3, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2 pr/exempt-integ-test Skips the integ test steps if set.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants