We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4121cb commit 7896c68Copy full SHA for 7896c68
packages/node/src/utils.ts
@@ -27,10 +27,11 @@ export function deepReadDirSync(targetDir: string): string[] {
27
const itemAbsPath = path.join(currentDirAbsPath, itemName);
28
29
if (fs.statSync(itemAbsPath).isDirectory()) {
30
- return [...absPaths, ...deepReadCurrentDir(itemAbsPath)];
+ return absPaths.concat(deepReadCurrentDir(itemAbsPath));
31
}
32
33
- return [...absPaths, itemAbsPath];
+ absPaths.push(itemAbsPath);
34
+ return absPaths;
35
}, []);
36
};
37
0 commit comments