diff --git a/lib/options-manager.js b/lib/options-manager.js index 424a2d21..d73bd34c 100644 --- a/lib/options-manager.js +++ b/lib/options-manager.js @@ -116,8 +116,8 @@ const mergeWithFileConfig = async options => { const {config: enginesOptions} = (await packageConfigExplorer.search(searchPath)) || {}; options = normalizeOptions({ - ...xoOptions, ...(enginesOptions && enginesOptions.node && semver.validRange(enginesOptions.node) ? {nodeVersion: enginesOptions.node} : {}), + ...xoOptions, ...options, }); options.extensions = [...DEFAULT_EXTENSION, ...(options.extensions || [])];