Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/rig-package > RigConfig > getResolvedProfileFolder

RigConfig.getResolvedProfileFolder() method​

Performs Node.js module resolution to locate the rig package folder, then returns the absolute path of the rig profile folder specified by rig.json.

Signature:

getResolvedProfileFolder(): string;

Returns:

string

Remarks​

If no rig.json file was found, then this method throws an error. The first time this method is called, the result is cached and will be returned by all subsequent calls.

Example: /path/to/your-project/node_modules/example-rig/profiles/example-profile