diff --git a/common/changes/@microsoft/rush/sennyeya-allow-injected-deps-outside-of-subspaces_2024-12-26-19-45.json b/common/changes/@microsoft/rush/sennyeya-allow-injected-deps-outside-of-subspaces_2024-12-26-19-45.json new file mode 100644 index 00000000000..3da655a179e --- /dev/null +++ b/common/changes/@microsoft/rush/sennyeya-allow-injected-deps-outside-of-subspaces_2024-12-26-19-45.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Allow injected dependencies without enabling subspaces.", + "type": "none", + "packageName": "@microsoft/rush" + } + ], + "packageName": "@microsoft/rush", + "email": "aramissennyeydd@users.noreply.github.com" +} \ No newline at end of file diff --git a/libraries/rush-lib/src/logic/RepoStateFile.ts b/libraries/rush-lib/src/logic/RepoStateFile.ts index 3d875afd66c..074609fa363 100644 --- a/libraries/rush-lib/src/logic/RepoStateFile.ts +++ b/libraries/rush-lib/src/logic/RepoStateFile.ts @@ -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);