Skip to content

refactor(@angular-devkit/core): remove unneeded import statements from Node.js file host#24184

Merged
dgp1130 merged 1 commit intoangular:mainfrom
clydin:core/cleanup-host-imports
Nov 4, 2022
Merged

refactor(@angular-devkit/core): remove unneeded import statements from Node.js file host#24184
dgp1130 merged 1 commit intoangular:mainfrom
clydin:core/cleanup-host-imports

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Nov 4, 2022

This reduces the number of imports for the Node.js file host classes. The fs default import was only used in one place and named imports were already in use for node:fs which allowed the one use to be converted to a named import. The type only import for chokidar was also only used in one type annotation and was moved to the type annotation directly.

@clydin clydin requested a review from alan-agius4 November 4, 2022 14:55
@clydin clydin force-pushed the core/cleanup-host-imports branch from ede12d0 to 4be858a Compare November 4, 2022 15:10
@clydin clydin requested a review from dgp1130 November 4, 2022 15:14
…m Node.js file host

This reduces the number of imports for the Node.js file host classes. The `fs` default
import was only used in one place and named imports were already in use for `node:fs`
which allowed the one use to be converted to a named import. The type only import for
`chokidar` was also only used in one type annotation and was moved to the type
annotation directly.
@clydin clydin force-pushed the core/cleanup-host-imports branch from 4be858a to f7cab20 Compare November 4, 2022 15:49
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 4, 2022
@clydin clydin removed the request for review from alan-agius4 November 4, 2022 18:04
@clydin clydin added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 4, 2022
@dgp1130 dgp1130 merged commit 18b72a8 into angular:main Nov 4, 2022
@clydin clydin deleted the core/cleanup-host-imports branch November 4, 2022 18:25
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue 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 Dec 5, 2022
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 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