fix: compatibility of fs-extra with esm (#4017)

This commit is contained in:
Vben
2024-08-03 09:49:46 +08:00
committed by GitHub
parent bf8a5ffb5d
commit 27ffc9e71b
11 changed files with 78 additions and 33 deletions

View File

@@ -1,5 +1,6 @@
export * from './constants';
export * from './date';
export * from './fs';
export * from './git';
export { add as gitAdd, getStagedFiles } from './git';
export { generatorContentHash } from './hash';
@@ -12,8 +13,9 @@ export { default as colors } from 'chalk';
export { consola } from 'consola';
export * from 'execa';
export * as fs from 'fs-extra';
export { nanoid } from 'nanoid';
export { type PackageJson, readPackageJSON } from 'pkg-types';
export { default as fs } from 'node:fs/promises';
export { type PackageJson, readPackageJSON } from 'pkg-types';
export { rimraf } from 'rimraf';