Skip to content

Commit

Permalink
Fix for ESM modules imports (#18)
Browse files Browse the repository at this point in the history
* Fixes for imports
  • Loading branch information
devunion committed Mar 11, 2023
1 parent 766d723 commit e04acc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "find-files-by-patterns",
"sideEffects": false,
"packageManager": "yarn@3.2.0",
"version": "2.0.2",
"version": "2.0.3",
"description": "Find files by patterns in directories, upwards or downwards from other paths.",
"license": "MIT",
"author": "Marc-Antoine Ouimet <ouimetmarcantoine@gmail.com>",
Expand Down
12 changes: 6 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export {
onlyElement,
onlyElementSync,
ConflictError,
} from "./iterable";
export { readdir, readdirSync, readdirs, readdirsSync } from "./readdirs";
} from "./iterable.js";
export { readdir, readdirSync, readdirs, readdirsSync } from "./readdirs.js";

export {
hasPathSegments,
Expand All @@ -26,9 +26,9 @@ export {
ofName,
ofExtname,
segments,
} from "./path";
} from "./path.js";
export { isFile, isDirectory, isFileSync, isDirectorySync } from "./stat.js";
export { hasFile, hasFileSync } from "./hasFile";
export { hasFile, hasFileSync } from "./hasFile.js";

export {
findAllFiles,
Expand All @@ -37,7 +37,7 @@ export {
findFileSync,
findOnlyFile,
findOnlyFileSync,
} from "./fileFinders";
} from "./fileFinders.js";

export {
downwardFiles,
Expand All @@ -50,4 +50,4 @@ export {
downwardDirectoriesSync,
upwardDirectories,
upwardDirectoriesSync,
} from "./directories";
} from "./directories.js";

0 comments on commit e04acc4

Please sign in to comment.