Skip to content

getSharedConfigFilePath

Finds a shared configuration file. It walks up from the module, because it runs from src here and from dist/lib/<format> once installed.

Import:

import { getSharedConfigFilePath } from '@mnaoumov/typescript-dev-toolkit/shared-config-files';

Signature:

function getSharedConfigFilePath(file: SharedConfigFile, moduleUrl: string): string

Parameters:

Parameter Type Description
file SharedConfigFile The SharedConfigFile to find.
moduleUrl string The URL of a module of this package to start from.

Returns: string — The file’s absolute path.