@salesforce/b2c-tooling-sdk / config / findDwJson
Function: findDwJson()
findDwJson(
startDir):string|undefined
Defined in: packages/b2c-tooling-sdk/src/config/dw-json.ts:85
Finds dw.json by searching upward from the starting directory.
Parameters
startDir
string = ...
Directory to start searching from (defaults to cwd)
Returns
string | undefined
Path to dw.json if found, undefined otherwise
Example
ts
const dwPath = findDwJson();
if (dwPath) {
console.log(`Found dw.json at ${dwPath}`);
}