Skip to content

Commit

Permalink
Merge pull request #4633 from g-chao/chao/upgrade-pnpm-sync
Browse files Browse the repository at this point in the history
[rush-lib] Update dependency: pnpm-sync-lib@0.2.2
  • Loading branch information
iclanton committed Apr 10, 2024
2 parents c46bd9d + 246378c commit 91030d7
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Update dependency: pnpm-sync-lib@0.2.2",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}
17 changes: 13 additions & 4 deletions common/config/subspaces/default/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/config/subspaces/default/repo-state.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
{
"pnpmShrinkwrapHash": "f978fe75c5f4cc21dceba7d0dbfcce33e6909f2c",
"pnpmShrinkwrapHash": "adb944665d5d498cbf5efe14dfd31f1734266745",
"preferredVersionsHash": "ce857ea0536b894ec8f346aaea08cfd85a5af648"
}
2 changes: 1 addition & 1 deletion libraries/rush-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"tar": "~6.1.11",
"true-case-path": "~2.2.1",
"uuid": "~8.3.2",
"pnpm-sync-lib": "0.2.0"
"pnpm-sync-lib": "0.2.2"
},
"devDependencies": {
"@pnpm/logger": "4.0.0",
Expand Down
20 changes: 20 additions & 0 deletions libraries/rush-lib/src/utilities/PnpmSyncUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,26 @@ export class PnpmSyncUtilities {
terminal.writeVerboseLine(PnpmSyncUtilities._addLinePrefix(customMessage));
}
return;

case LogMessageIdentifier.PREPARE_REPLACING_FILE:
{
const customMessage: string =
`excepted .pnpm-sync.json version: ${details.expectedVersion}; ` +
`actual .pnpm-sync.json version: ${details.actualVersion}; `;

terminal.writeVerboseLine(PnpmSyncUtilities._addLinePrefix(message));
terminal.writeVerboseLine(PnpmSyncUtilities._addLinePrefix(customMessage));
}
return;

// don't return this error case, pass to default handler
case LogMessageIdentifier.COPY_ERROR_INCOMPATIBLE_SYNC_FILE: {
const customMessage: string =
`excepted .pnpm-sync.json version: ${details.expectedVersion}; ` +
`actual .pnpm-sync.json version: ${details.actualVersion}; `;

terminal.writeErrorLine(PnpmSyncUtilities._addLinePrefix(customMessage));
}
}

// Default handling for other messages
Expand Down

0 comments on commit 91030d7

Please sign in to comment.