diff --git a/CHANGELOG.md b/CHANGELOG.md index 62c3c8bcbc..30f2d7ad04 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 +- Removes `rootModuleFolders` (internal variable which wasn't used anywhere) + + [#6846](https://github.com/yarnpkg/yarn/pull/6846) - [**Jeff Valore**](https://twitter.com/codingwithspike) + - Allows `global-folder` to be set in `.yarnrc` files [#7056](https://github.com/yarnpkg/yarn/pull/7056) - [**Hsiao-nan Cheung**](https://github.com/niheaven) diff --git a/src/cli/commands/config.js b/src/cli/commands/config.js index 1e35326d73..d884c2c39e 100644 --- a/src/cli/commands/config.js +++ b/src/cli/commands/config.js @@ -7,7 +7,6 @@ import buildSubCommands from './_build-sub-commands.js'; const CONFIG_KEYS = [ // 'reporter', - 'rootModuleFolders', 'registryFolders', 'linkedModules', // 'registries', diff --git a/src/config.js b/src/config.js index 031f7e4356..264e850d57 100644 --- a/src/config.js +++ b/src/config.js @@ -127,9 +127,6 @@ export default class Config { // linkedModules: Array; - // - rootModuleFolders: Array; - // linkFolder: string; @@ -317,10 +314,6 @@ export default class Config { if (this.registryFolders.indexOf(registry.folder) === -1) { this.registryFolders.push(registry.folder); } - const rootModuleFolder = path.join(this.cwd, registry.folder); - if (this.rootModuleFolders.indexOf(rootModuleFolder) === -1) { - this.rootModuleFolders.push(rootModuleFolder); - } } if (this.modulesFolder) { @@ -458,7 +451,6 @@ export default class Config { } _init(opts: ConfigOptions) { - this.rootModuleFolders = []; this.registryFolders = []; this.linkedModules = []; @@ -499,10 +491,6 @@ export default class Config { captureHar: !!opts.captureHar, }); - if (this.modulesFolder) { - this.rootModuleFolders.push(this.modulesFolder); - } - this.focus = !!opts.focus; this.focusedWorkspaceName = '';