Skip to content

Commit 3401097

Browse files
committed
Removed forward slash.
1 parent c098062 commit 3401097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/doxdox-core/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ export const findParentNodeModules = async (
6161
): Promise<string | null> => {
6262
if (maxDepth > 0) {
6363
try {
64-
const nodeModulesPath = resolve(currentDirectory, './node_modules');
64+
const nodeModulesPath = resolve(currentDirectory, 'node_modules');
6565

6666
if (await fs.stat(nodeModulesPath)) {
6767
return nodeModulesPath;
6868
}
6969
} catch (_) {
70-
const parentDirectory = resolve(currentDirectory, '../');
70+
const parentDirectory = resolve(currentDirectory, '..');
7171

7272
return await findParentNodeModules(parentDirectory, --maxDepth);
7373
}

0 commit comments

Comments
 (0)