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 c098062 commit 3401097Copy full SHA for 3401097
packages/doxdox-core/src/utils.ts
@@ -61,13 +61,13 @@ export const findParentNodeModules = async (
61
): Promise<string | null> => {
62
if (maxDepth > 0) {
63
try {
64
- const nodeModulesPath = resolve(currentDirectory, './node_modules');
+ const nodeModulesPath = resolve(currentDirectory, 'node_modules');
65
66
if (await fs.stat(nodeModulesPath)) {
67
return nodeModulesPath;
68
}
69
} catch (_) {
70
- const parentDirectory = resolve(currentDirectory, '../');
+ const parentDirectory = resolve(currentDirectory, '..');
71
72
return await findParentNodeModules(parentDirectory, --maxDepth);
73
0 commit comments