Skip to content

Commit

Permalink
Using more flow without comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Jan 30, 2024
1 parent 257a412 commit 60b6a83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/community-cli-plugin/src/utils/getWorkspaceRoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ function getWorkspacePaths(packagePath: string): Array<string> {
* - which (possibly via a glob) includes the project root
*/
export function getWorkspaceRoot(
projectRoot /*: string */,
candidatePath /*: string */ = projectRoot,
) /*: ?string */ {
projectRoot: string,
candidatePath: string = projectRoot,
): ?string {
const workspacePaths = getWorkspacePaths(candidatePath);
// If one of the workspaces match the project root, this is the workspace root
// Note: While npm workspaces doesn't currently support globs, yarn does, which is why we use micromatch
Expand Down

0 comments on commit 60b6a83

Please sign in to comment.