"use strict";var t=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{u(o.next(t))}catch(t){r(t)}}function l(t){try{u(o.throw(t))}catch(t){r(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,l)}u((o=o.apply(t,e||[])).next())}))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getRootNodeForInstallation=void 0;const e=require("../../dependency/util"),n=require("../../../config"),o=require("./handleCliInput"),i=require("../../../common/GlobalState");exports.getRootNodeForInstallation=function(r,a,l){return t(this,void 0,void 0,(function*(){const t=yield(0,e.getRootNode)(r,l.link);return a=i.GlobalState.command===i.CommandType.UPDATE&&l.allModules||r===n.config.getRootDir()?a:[],yield(0,o.handleCliInput)(r,a,t,l),t}))};