Repository script API / utils/workspace-discovery / discoverWorkspace
Function: discoverWorkspace()
discoverWorkspace(
root):object
Defined in: utils/workspace-discovery.mjs:22
Lists the tracked files and reads the workspace packages by name, the root manifest, the Turborepo configuration and the workflow files.
Parameters
root
any
Returns
object
files
files:
string[]
packages
packages:
Map<any,any>
read
read: (
file) =>string
Parameters
file
any
Returns
string
rootManifest
rootManifest:
any
turboConfig
turboConfig:
any
turboConfigFile
turboConfigFile:
"turbo.json"|undefined
workflowFiles
workflowFiles:
string[]
Throws
When Git cannot list the tracked files.