@salesforce/b2c-tooling-sdk / scaffold / cartridgePathForDestination
Function: cartridgePathForDestination()
cartridgePathForDestination(
absolutePath,projectRoot):string
Defined in: packages/b2c-tooling-sdk/src/scaffold/sources.ts:212
Path to use for scaffold destination so files are generated under outputDir (e.g. working directory). Returns a path relative to projectRoot when the cartridge is under projectRoot, so the executor joins with outputDir instead of ignoring it. Otherwise returns the absolute path.
Parameters
absolutePath
string
projectRoot
string
Returns
string