-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove process.cwd() trick from test files * BREAKING: Switch from main to exports * Add fs-extra/esm ESM named import module, with just fs-extra methods Fixes #746
- Loading branch information
Showing
42 changed files
with
258 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import _copy from './copy/index.js' | ||
import _empty from './empty/index.js' | ||
import _ensure from './ensure/index.js' | ||
import _json from './json/index.js' | ||
import _mkdirs from './mkdirs/index.js' | ||
import _move from './move/index.js' | ||
import _outputFile from './output-file/index.js' | ||
import _pathExists from './path-exists/index.js' | ||
import _remove from './remove/index.js' | ||
|
||
// NOTE: Only exports fs-extra's functions; fs functions must be imported from "node:fs" or "node:fs/promises" | ||
|
||
export const copy = _copy.copy | ||
export const copySync = _copy.copySync | ||
export const emptyDirSync = _empty.emptyDirSync | ||
export const emptydirSync = _empty.emptydirSync | ||
export const emptyDir = _empty.emptyDir | ||
export const emptydir = _empty.emptydir | ||
export const createFile = _ensure.createFile | ||
export const createFileSync = _ensure.createFileSync | ||
export const ensureFile = _ensure.ensureFile | ||
export const ensureFileSync = _ensure.ensureFileSync | ||
export const createLink = _ensure.createLink | ||
export const createLinkSync = _ensure.createLinkSync | ||
export const ensureLink = _ensure.ensureLink | ||
export const ensureLinkSync = _ensure.ensureLinkSync | ||
export const createSymlink = _ensure.createSymlink | ||
export const createSymlinkSync = _ensure.createSymlinkSync | ||
export const ensureSymlink = _ensure.ensureSymlink | ||
export const ensureSymlinkSync = _ensure.ensureSymlinkSync | ||
export const readJson = _json.readJson | ||
export const readJSON = _json.readJSON | ||
export const readJsonSync = _json.readJsonSync | ||
export const readJSONSync = _json.readJSONSync | ||
export const writeJson = _json.writeJson | ||
export const writeJSON = _json.writeJSON | ||
export const writeJsonSync = _json.writeJsonSync | ||
export const writeJSONSync = _json.writeJSONSync | ||
export const outputJson = _json.outputJson | ||
export const outputJSON = _json.outputJSON | ||
export const outputJsonSync = _json.outputJsonSync | ||
export const outputJSONSync = _json.outputJSONSync | ||
export const mkdirs = _mkdirs.mkdirs | ||
export const mkdirsSync = _mkdirs.mkdirsSync | ||
export const mkdirp = _mkdirs.mkdirp | ||
export const mkdirpSync = _mkdirs.mkdirpSync | ||
export const ensureDir = _mkdirs.ensureDir | ||
export const ensureDirSync = _mkdirs.ensureDirSync | ||
export const move = _move.move | ||
export const moveSync = _move.moveSync | ||
export const outputFile = _outputFile.outputFile | ||
export const outputFileSync = _outputFile.outputFileSync | ||
export const pathExists = _pathExists.pathExists | ||
export const pathExistsSync = _pathExists.pathExistsSync | ||
export const remove = _remove.remove | ||
export const removeSync = _remove.removeSync | ||
|
||
export default { | ||
..._copy, | ||
..._empty, | ||
..._ensure, | ||
..._json, | ||
..._mkdirs, | ||
..._move, | ||
..._outputFile, | ||
..._pathExists, | ||
..._remove | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.