findWorkspacePath
This content is not available in your language yet.
findWorkspacePath(
cwd):string|null
Defined in: core/src/workspace.ts:112
cwd 에서 zntc.workspace.{ext} 를 자동 탐색.
Parameters
섹션 제목: “Parameters”cwd
섹션 제목: “cwd”string
탐색 시작 디렉토리 (보통 process.cwd())
Returns
섹션 제목: “Returns”string | null
발견된 절대 경로 또는 null
동기 stat (existsSync) 사용 — CLI 시작 시 한 번만 호출되므로 무시 가능한 비용.
parent traversal 은 안 함 — 모노레포 root 가 아닌 sub-package 안에서 호출되면 null 반환.