Skip to content

Commit 7274cba

Browse files
committed
Fixed spelling mistake. [skip ci]
1 parent 20d7ea1 commit 7274cba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/doxdox-core/src/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,25 @@ export const findFileInPath = async (
4949
/**
5050
* Finds the closest node_module folder in the parent directories.
5151
*
52-
* @param {string} [curentDirectory] Current directory.
52+
* @param {string} [currentDirectory] Current directory.
5353
* @param {number} [maxDepth] Optional max depth.
5454
* @return {Promise<string | null>} Path to node_modules directory.
5555
* @public
5656
*/
5757

5858
export const findParentNodeModules = async (
59-
curentDirectory: string,
59+
currentDirectory: string,
6060
maxDepth: number = 5
6161
): Promise<string | null> => {
6262
if (maxDepth > 0) {
6363
try {
64-
const nodeModulesPath = resolve(curentDirectory, './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(curentDirectory, '../');
70+
const parentDirectory = resolve(currentDirectory, '../');
7171

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

0 commit comments

Comments
 (0)