loadPermissionSetBuildFile
loadPermissionSetBuildFile(
filePath):Promise<PermissionSetSpec>
Defined in: packages/simply-permissions-core/src/permissionSetBuild.ts:483
Loads a permission set build file into a PermissionSetSpec: loads a file-referenced
overrides config and checks that the source directory exists, so a caller that validates with
this before calling generatePermissionSets writes nothing when the file is invalid.
Relative paths are returned as written (resolved against the current directory by whatever uses
them), not against the file’s location.
Parameters
Section titled “Parameters”filePath
Section titled “filePath”string
Returns
Section titled “Returns”Promise<PermissionSetSpec>
Throws
Section titled “Throws”config-not-found or invalid-config (the file itself or a
referenced overrides file), legacy-format for a file in the old permissionSets list format, or
directory-not-found.