Skip to content

Commit

Permalink
feat(core): Add core loading also from config
Browse files Browse the repository at this point in the history
  • Loading branch information
florianPat committed Nov 16, 2024
1 parent 00e5bb5 commit bdc71ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/lando
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ const cores = [
path.resolve(__dirname, '..'),
];

if (typeof _.get(config, 'plugins.@lando/core') === 'string') {
cores.unshift(path.resolve(appConfig.root, config.plugins['@lando/core']));
}

// if appConfig points to a different core lets set that here
if (typeof _.get(appConfig, 'plugins.@lando/core') === 'string') {
cores.unshift(path.resolve(appConfig.root, appConfig.plugins['@lando/core']));
Expand Down

0 comments on commit bdc71ea

Please sign in to comment.