Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "Route the \"Lockfile was created or deleted\" warning to stderr so that machine-readable output (e.g. `rush list --json`) remains parseable when the lockfile was added or removed in the diff range.",
"type": "patch",
"packageName": "@microsoft/rush"
}
],
"packageName": "@microsoft/rush",
"email": "sshaurya914@gmail.com"
}
6 changes: 4 additions & 2 deletions libraries/rush-lib/src/logic/ProjectChangeAnalyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,13 @@ export class ProjectChangeAnalyzer {
if (shrinkwrapStatus) {
if (shrinkwrapStatus.status !== 'M') {
if (rushConfiguration.subspacesFeatureEnabled) {
terminal.writeLine(
terminal.writeWarningLine(
`"${subspace.subspaceName}" subspace lockfile was created or deleted. Assuming all projects are affected.`
);
} else {
terminal.writeLine(`Lockfile was created or deleted. Assuming all projects are affected.`);
terminal.writeWarningLine(
`Lockfile was created or deleted. Assuming all projects are affected.`
);
}
for (const project of subspaceProjects) {
changedProjects.add(project);
Expand Down
Loading