Skip to content

readFileFromInstallDir

readFileFromInstallDir(filePath, packageDir?): string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/fileUtils.ts:191

Read a file shipped with an installed package. Defaults to the core package dir; downstream packages shipping their own default files (e.g. prompts) pass their own package dir.

string

string = corePackageDir

string