Skip to content

refactor: use TEST_TMPDIR in CLI tests, node: imports, and remove unused devDependencies - #34643

Merged
dgp1130 merged 3 commits into
angular:mainfrom
alan-agius4:refactor/agents-md-and-devdeps-cleanup
Nov 3, 2026
Merged

dgp1130 merged 3 commits into
angular:mainfrom
alan-agius4:refactor/agents-md-and-devdeps-cleanup

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Enforce repository guidelines across packages:

  • Use process.env['TEST_TMPDIR'] instead of os.tmpdir() in CLI unit tests.
  • Add the node: protocol prefix to remaining bare Node.js built-in imports.
  • Remove unused package-level devDependencies from @angular-devkit/build-angular, @ngtools/webpack, and @angular/ssr.

Use process.env['TEST_TMPDIR'] with an assertion in unit tests to ensure hermetic execution within the Bazel sandbox.
Update remaining bare Node.js built-in module imports across packages to use the node: protocol.
@angular-robot angular-robot Bot added area: build & ci Related the build and CI infrastructure of the project area: @angular/cli labels Nov 3, 2026

@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 standardizes Node.js built-in module imports by adding the "node:" prefix across multiple files, and refactors several test suites to use process.env['TEST_TMPDIR'] instead of tmpdir() from node:os for managing temporary directories. Additionally, it cleans up redundant devDependencies in the package.json files of several packages. There are no review comments provided, so I have no feedback to address.

Remove unused devDependencies from @angular-devkit/build-angular, @ngtools/webpack, and @angular/ssr package.json files.
@alan-agius4
alan-agius4 force-pushed the refactor/agents-md-and-devdeps-cleanup branch from 7f7c867 to 1dbb22c Compare November 3, 2026 08:54
@alan-agius4
alan-agius4 requested a review from dgp1130 November 3, 2026 09:50
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Nov 3, 2026
@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 Nov 3, 2026
@dgp1130
dgp1130 merged commit fd03eae into angular:main Nov 3, 2026
42 checks passed
@dgp1130

dgp1130 commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

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

@alan-agius4
alan-agius4 deleted the refactor/agents-md-and-devdeps-cleanup branch November 3, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli area: build & ci Related the build and CI infrastructure of the project target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants