| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @microsoft/rush-lib > Subspace > getVariantDependentSubspaceConfigFolderPath
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns the full path of the folder containing this subspace's variant-dependent configuration files such as pnpm-lock.yaml<></>.
Example (variants): C:\MyRepo\common\config\rush\variants\my-variant Example (variants and subspaces): C:\MyRepo\common\config\subspaces\my-subspace\variants\my-variant Example (subspaces): C:\MyRepo\common\config\subspaces\my-subspace Example (neither): C:\MyRepo\common\config\rush
Signature:
getVariantDependentSubspaceConfigFolderPath(variant: string | undefined): string;|
Parameter |
Type |
Description |
|---|---|---|
|
variant |
string | undefined |
Returns:
string
The following files may be variant-dependent: - Lockfiles: (i.e. - pnpm-lock.yaml<></>, npm-shrinkwrap.json<></>, yarn.lock<></>, etc) - 'common-versions.json' - 'pnpmfile.js'/'.pnpmfile.cjs'