diff --git a/CHANGELOG.md b/CHANGELOG.md index c0c8e7d1f4..6c9a7c890d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa ## Master +- Suggests using the Yarn 2 development trunk on PnP-enabled projects + + [#7512](https://github.com/yarnpkg/yarn/pull/7512) - [**Maƫl Nison**](https://twitter.com/arcanis) + - Preserves linked packages when calling `yarn create` [#7543](https://github.com/yarnpkg/yarn/pull/7543) - [**Nick McCurdy**](https://github.com/nickmccurdy) diff --git a/src/cli/commands/install.js b/src/cli/commands/install.js index af3f64f56a..bbe044fc35 100644 --- a/src/cli/commands/install.js +++ b/src/cli/commands/install.js @@ -560,6 +560,11 @@ export class Install { this.reporter.warn(this.reporter.lang('npmLockfileWarning')); } + if (this.config.plugnplayEnabled) { + this.reporter.info(this.reporter.lang('plugnplaySuggestV2L1')); + this.reporter.info(this.reporter.lang('plugnplaySuggestV2L2')); + } + let flattenedTopLevelPatterns: Array = []; const steps: Array<(curr: number, total: number) => Promise<{bailout: boolean} | void>> = []; const { diff --git a/src/reporters/lang/en.js b/src/reporters/lang/en.js index 816446cdfd..410aca85e3 100644 --- a/src/reporters/lang/en.js +++ b/src/reporters/lang/en.js @@ -361,6 +361,9 @@ const messages = { unplugDisabled: "Packages can only be unplugged when Plug'n'Play is enabled.", + plugnplaySuggestV2L1: "Plug'n'Play support has been greatly improved on the Yarn v2 development branch.", + plugnplaySuggestV2L2: + 'Please give it a try and tell us what you think! - https://next.yarnpkg.com/getting-started/install', plugnplayWindowsSupport: "Plug'n'Play on Windows doesn't support the cache and project to be kept on separate drives", packageInstalledWithBinaries: 'Installed $0 with binaries:',