checkupjs / checkup

A health checkup for your project.
https://checkupjs.github.io/
MIT License
77 stars 23 forks source link

Fixes destructure of fs-extra #1279

Closed scalvert closed 2 years ago

scalvert commented 2 years ago

Fixes issue with destructuring CJS module in ESM.

SyntaxError: Named export 'symlinkSync' not found. The requested module 'fs-extra' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'fs-extra';
const { symlinkSync, mkdirpSync } = pkg;