We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 257a412 commit 60b6a83Copy full SHA for 60b6a83
packages/community-cli-plugin/src/utils/getWorkspaceRoot.js
@@ -66,9 +66,9 @@ function getWorkspacePaths(packagePath: string): Array<string> {
66
* - which (possibly via a glob) includes the project root
67
*/
68
export function getWorkspaceRoot(
69
- projectRoot /*: string */,
70
- candidatePath /*: string */ = projectRoot,
71
-) /*: ?string */ {
+ projectRoot: string,
+ candidatePath: string = projectRoot,
+): ?string {
72
const workspacePaths = getWorkspacePaths(candidatePath);
73
// If one of the workspaces match the project root, this is the workspace root
74
// Note: While npm workspaces doesn't currently support globs, yarn does, which is why we use micromatch
0 commit comments