Skip to content

refactor(@angular/build): export DEFAULT_ASSET_IGNORE from resolve-assets - #34175

Merged
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:refactor/resolve-assets-default-ignore
Sep 25, 2026
Merged

alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:refactor/resolve-assets-default-ignore

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

Exports DEFAULT_ASSET_IGNORE (['.gitkeep', '**/.DS_Store', '**/Thumbs.db']) from packages/angular/build/src/utils/resolve-assets.ts so builders can share the default asset ignore patterns.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the asset resolution logic by extracting the default asset ignore patterns into an exported constant, DEFAULT_ASSET_IGNORE, and updating the glob configuration to use spread syntax. The review feedback warns that defining the constant with as const makes it a readonly tuple, which could lead to TypeScript compilation errors if the underlying glob library expects a mutable array.

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Sep 25, 2026
@alan-agius4
alan-agius4 requested a review from clydin September 25, 2026 08:09
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 25, 2026
@alan-agius4
alan-agius4 merged commit 7ce093f into angular:main Sep 25, 2026
43 checks passed
@alan-agius4
alan-agius4 deleted the refactor/resolve-assets-default-ignore branch September 25, 2026 14:37
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

@angular-automatic-lock-bot

Copy link
Copy Markdown

This pull request has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Oct 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants