refactor(installer): remove logo display and setBmadFolderName from install()
Logo display belongs in ui.js, not install(). setBmadFolderName call was redundant — IdeManager constructor already defaults to the same constant. Remove dead CLIUtils import.
This commit is contained in:
parent
2c84ed8482
commit
e0e59e66bf
|
|
@ -9,7 +9,6 @@ const { FileOps } = require('../../../lib/file-ops');
|
||||||
const { Config } = require('../../../lib/config');
|
const { Config } = require('../../../lib/config');
|
||||||
const { ConfigCollector } = require('./config-collector');
|
const { ConfigCollector } = require('./config-collector');
|
||||||
const { getProjectRoot, getSourcePath, getModulePath } = require('../../../lib/project-root');
|
const { getProjectRoot, getSourcePath, getModulePath } = require('../../../lib/project-root');
|
||||||
const { CLIUtils } = require('../../../lib/cli-utils');
|
|
||||||
const { ManifestGenerator } = require('./manifest-generator');
|
const { ManifestGenerator } = require('./manifest-generator');
|
||||||
const { IdeConfigManager } = require('./ide-config-manager');
|
const { IdeConfigManager } = require('./ide-config-manager');
|
||||||
const { CustomHandler } = require('../custom-handler');
|
const { CustomHandler } = require('../custom-handler');
|
||||||
|
|
@ -47,18 +46,12 @@ class Installer {
|
||||||
// Everything else — custom modules, quick-update state, the whole mess
|
// Everything else — custom modules, quick-update state, the whole mess
|
||||||
const customConfig = { ...originalConfig };
|
const customConfig = { ...originalConfig };
|
||||||
|
|
||||||
// if core config isn't collected, we haven't run the UI -> display logo/version
|
|
||||||
if (!config.hasCoreConfig()) {
|
|
||||||
await CLIUtils.displayLogo();
|
|
||||||
}
|
|
||||||
|
|
||||||
const paths = await InstallPaths.create(config);
|
const paths = await InstallPaths.create(config);
|
||||||
|
|
||||||
// Collect configurations for official modules
|
// Collect configurations for official modules
|
||||||
const moduleConfigs = await this._collectConfigs(config, paths);
|
const moduleConfigs = await this._collectConfigs(config, paths);
|
||||||
|
|
||||||
await this.customModules.discoverPaths(config, paths);
|
await this.customModules.discoverPaths(config, paths);
|
||||||
this.ideManager.setBmadFolderName(BMAD_FOLDER_NAME);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const existingInstall = await this.detector.detect(paths.bmadDir);
|
const existingInstall = await this.detector.detect(paths.bmadDir);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue