This fixes rimraf import from:
import { rimraf } from rimraf
To:
import pkg from 'rimraf';
const { rimraf } = pkg;
The current import is incorrect and breaks in certain environments:
[!] SyntaxError: Named export 'rimraf' not found. The requested module 'rimraf' is a CommonJS module, which may not support all module.exports as named exports.
Checklist
Note that we require UI tests to ensure that the added feature will not be
nixed by some future fix and that there is at least some test-as-documentation
to indicate how the fix or enhancement is expected to behave.
[ ] - Added Cypress UI tests
[ ] - Ran npm test, ensuring linting passes and that Cypress UI tests keep
coverage to at least the same percent (reflected in the coverage badge
that should be updated after the tests run)
[ ] - Added any user documentation. Though not required, this can be a big
help both for future users and for the PR reviewer.
PR description
This fixes rimraf import from: import { rimraf } from rimraf
To: import pkg from 'rimraf'; const { rimraf } = pkg;
The current import is incorrect and breaks in certain environments: [!] SyntaxError: Named export 'rimraf' not found. The requested module 'rimraf' is a CommonJS module, which may not support all module.exports as named exports.
Checklist
Note that we require UI tests to ensure that the added feature will not be nixed by some future fix and that there is at least some test-as-documentation to indicate how the fix or enhancement is expected to behave.
npm test
, ensuring linting passes and that Cypress UI tests keep coverage to at least the same percent (reflected in the coverage badge that should be updated after the tests run)