Skip to content

Remove fs-extra dependency#1302

Merged
minggangw merged 1 commit into
RobotWebTools:developfrom
minggangw:fix-1300
Oct 20, 2025
Merged

Remove fs-extra dependency#1302
minggangw merged 1 commit into
RobotWebTools:developfrom
minggangw:fix-1300

Conversation

@minggangw

@minggangw minggangw commented Oct 20, 2025

Copy link
Copy Markdown
Member

This PR removes the fs-extra dependency by implementing equivalent filesystem utilities using Node.js built-in modules. The change replaces fs-extra with custom utility functions that provide the same functionality while reducing external dependencies.

Key changes:

  • Created a comprehensive utils module with filesystem operations equivalent to fs-extra
  • Updated all imports to use the new utility module instead of fs-extra
  • Removed fs-extra from package.json dependencies

Fix: #1300

Copilot AI review requested due to automatic review settings October 20, 2025 02:30

Copilot AI 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.

Pull Request Overview

This PR removes the fs-extra dependency by implementing equivalent filesystem utilities using Node.js built-in modules. The change replaces fs-extra with custom utility functions that provide the same functionality while reducing external dependencies.

Key changes:

  • Created a comprehensive utils module with filesystem operations equivalent to fs-extra
  • Updated all imports to use the new utility module instead of fs-extra
  • Removed fs-extra from package.json dependencies

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/utils.js Added comprehensive filesystem utility functions to replace fs-extra functionality
scripts/run_test.js Updated to use new utils module and promise-based API for directory removal
rosidl_gen/index.js Replaced fs-extra import with utils module
rosidl_gen/idl_generator.js Replaced fs-extra import with utils module
rosidl_gen/generate_worker.js Replaced fs-extra import with utils module
rosidl_convertor/idl_convertor.js Updated to use standard fs for existsSync and utils for other operations
package.json Removed fs-extra dependency

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

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 82.874% (-0.3%) from 83.18%
when pulling 8e13233 on minggangw:fix-1300
into bf0944a on RobotWebTools:develop.

@minggangw minggangw merged commit 89b99e3 into RobotWebTools:develop Oct 20, 2025
18 checks passed
minggangw added a commit that referenced this pull request Oct 30, 2025
This PR removes the fs-extra dependency by implementing equivalent filesystem utilities using Node.js built-in modules. The change replaces fs-extra with custom utility functions that provide the same functionality while reducing external dependencies.

Key changes:
- Created a comprehensive utils module with filesystem operations equivalent to fs-extra
- Updated all imports to use the new utility module instead of fs-extra
- Removed fs-extra from package.json dependencies

Fix: #1300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove fs-extra dependency

3 participants