diff --git a/src/core/helpers/resolvePath.ts b/src/core/helpers/resolvePath.ts index 1dbae2a9f2..491ccf1b62 100644 --- a/src/core/helpers/resolvePath.ts +++ b/src/core/helpers/resolvePath.ts @@ -1,5 +1,11 @@ import { join } from 'node:path'; -export const resolvePath = (path: string): string => { - return join(__dirname, '..', '..', path); +/** + * Resolves a sequence of path segments into an absolute path. + * + * @param paths - A list of path segments to be joined and resolved relative to the module's root directory. + * @returns The resolved absolute path as a string. + */ +export const resolvePath = (...paths: string[]): string => { + return join(__dirname, '..', '..', ...paths); };