Skip to content

Commit

Permalink
fix: allow injected dependencies when subspaces are disabled (#5057)
Browse files Browse the repository at this point in the history
* fix: allow injected dependencies when subspaces are disabled

Signed-off-by: Aramis Sennyey <[email protected]>

* add changelog

Signed-off-by: Aramis Sennyey <[email protected]>

---------

Signed-off-by: Aramis Sennyey <[email protected]>
Co-authored-by: Aramis Sennyey <[email protected]>
  • Loading branch information
aramissennyeydd and aramissennyeydd authored Dec 26, 2024
1 parent 724aa51 commit a63054f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Allow injected dependencies without enabling subspaces.",
"type": "none",
"packageName": "@microsoft/rush"
}
],
"packageName": "@microsoft/rush",
"email": "[email protected]"
}
2 changes: 1 addition & 1 deletion libraries/rush-lib/src/logic/RepoStateFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class RepoStateFile {
this._modified = true;
}

if (rushConfiguration.isPnpm && rushConfiguration.subspacesFeatureEnabled) {
if (rushConfiguration.isPnpm) {
const packageJsonInjectedDependenciesHash: string | undefined =
subspace.getPackageJsonInjectedDependenciesHash(variant);

Expand Down

0 comments on commit a63054f

Please sign in to comment.