From ff7a2cc81bd115bd58ff80fcba091c0c73d64c5f Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 19 Jul 2019 12:53:19 -0400 Subject: [PATCH] Adds vscode keys - since they can be large (#5420) --- CHANGELOG.md | 4 ++++ src/util/execute-lifecycle-script.js | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32f46dfc15..806b31d9de 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 +- Ignores potentially large vscode keys in package.json to avoid E2BIG errors. + + [#7419](https://github.com/yarnpkg/yarn/pull/7419) - [**Eric Amodio**](https://twitter.com/eamodio) + - Enforces https for the Yarn and npm registries. [#7393](https://github.com/yarnpkg/yarn/pull/7393) - [**Maƫl Nison**](https://twitter.com/arcanis) diff --git a/src/util/execute-lifecycle-script.js b/src/util/execute-lifecycle-script.js index dcbbc008d2..f5db0821b4 100644 --- a/src/util/execute-lifecycle-script.js +++ b/src/util/execute-lifecycle-script.js @@ -18,7 +18,13 @@ export type LifecycleReturn = Promise<{ stdout: string, }>; -export const IGNORE_MANIFEST_KEYS: Set = new Set(['readme', 'notice', 'licenseText']); +export const IGNORE_MANIFEST_KEYS: Set = new Set([ + 'readme', + 'notice', + 'licenseText', + 'activationEvents', + 'contributes', +]); // We treat these configs as internal, thus not expose them to process.env. // This helps us avoid some gyp issues when building native modules.