diff --git a/apps/rush-lib/src/logic/InstallManager.ts b/apps/rush-lib/src/logic/InstallManager.ts index 57b13b1bcd..8ef3044319 100644 --- a/apps/rush-lib/src/logic/InstallManager.ts +++ b/apps/rush-lib/src/logic/InstallManager.ts @@ -968,6 +968,10 @@ export class InstallManager { // last install flag, which encapsulates the entire installation args.push('--no-lock'); + // Ensure that Rush's tarball dependencies get synchronized properly with the shrinkwrap.yaml file. + // See this GitHub issue: https://github.com/pnpm/pnpm/issues/1342 + args.push('--prefer-frozen-shrinkwrap', 'false'); + if (options.collectLogFile) { args.push('--reporter', 'ndjson'); } diff --git a/common/changes/@microsoft/rush/pgonzal-prefer-frozen-shrinkwrap_2018-08-31-20-00.json b/common/changes/@microsoft/rush/pgonzal-prefer-frozen-shrinkwrap_2018-08-31-20-00.json new file mode 100644 index 0000000000..a29fbe432f --- /dev/null +++ b/common/changes/@microsoft/rush/pgonzal-prefer-frozen-shrinkwrap_2018-08-31-20-00.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Add \"--prefer-frozen-shrinkwrap false\" to the \"pnpm install\" command line as a workaround for https://github.com/pnpm/pnpm/issues/1342", + "packageName": "@microsoft/rush", + "type": "none" + } + ], + "packageName": "@microsoft/rush", + "email": "pgonzal@users.noreply.github.com" +} \ No newline at end of file