Skip to content

Commit cd955d0

Browse files
committed
fix: specify paths relative to recursive instead of root
1 parent 6255064 commit cd955d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12849,7 +12849,7 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) =
1284912849
const filesOrFolders = await import_fs.default.readdirSync(`./${path}`);
1285012850
const children2 = [];
1285112851
for (const fileOrFolder of filesOrFolders) {
12852-
const fullPath = nodePath.join(rootPath, fileOrFolder);
12852+
const fullPath = nodePath.join(path, fileOrFolder);
1285312853
if (shouldExcludePath(fullPath, fullPathFoldersToIgnore, excludedGlobs)) {
1285412854
continue;
1285512855
}

src/process-dir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const processDir = async (rootPath = "", excludedPaths = [], excludedGlob
3333
const children = [];
3434

3535
for (const fileOrFolder of filesOrFolders) {
36-
const fullPath = nodePath.join(rootPath, fileOrFolder);
36+
const fullPath = nodePath.join(path, fileOrFolder);
3737
if (shouldExcludePath(fullPath, fullPathFoldersToIgnore, excludedGlobs)) {
3838
continue;
3939
}

0 commit comments

Comments
 (0)