We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bf51d8 commit d58e4bfCopy full SHA for d58e4bf
2 files changed
.changeset/easy-pillows-tease.md
@@ -0,0 +1,5 @@
1
+---
2
+"@rnx-kit/align-deps": patch
3
4
+
5
+Fixed root workspace being checked twice depending on configuration
packages/align-deps/src/cli.ts
@@ -145,7 +145,10 @@ async function getManifests(
145
const allPackages = (await findWorkspacePackages()).map((p) =>
146
path.join(path.relative(cwd, p), "package.json")
147
);
148
- allPackages.push(manifestPath);
+ // Add the root workspace if it isn't there
149
+ if (!allPackages.includes(manifestPath)) {
150
+ allPackages.push(manifestPath);
151
+ }
152
return allPackages;
153
} catch (e) {
154
if (hasProperty(e, "message")) {
0 commit comments