Skip to content

fix: update to named export for rimraf and promisessw#44

Open
RobCC wants to merge 3 commits into
webos-tools:mainfrom
RobCC:fix/rimraf-import
Open

fix: update to named export for rimraf and promisessw#44
RobCC wants to merge 3 commits into
webos-tools:mainfrom
RobCC:fix/rimraf-import

Conversation

@RobCC
Copy link
Copy Markdown

@RobCC RobCC commented May 29, 2026

Summary

Updates rimraf usage to

  1. Use export instead of default (no longer works with versions greater than 5)
  2. Handles invocations through promises instead of callbacks

Release Notes

Fix ares-package rimraf import and usage

#Detailed Notes
With the latest release of 3.2.4 we get the following error

TypeError: rimraf is not a function

rimraf was updated to v6, but since v5 they removed the default export.

The error comes from the default import in package.js

 rimraf = require('rimraf'),

Additionally, rimrafnow returns a promise, rather than handling callbacks

Testing Performed

Tested on macOS Tahoe

Issues Addressed

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.

1 participant