From c96584342b41412883abeab2a63155fbddc30589 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Tue, 23 Jul 2024 21:23:46 +0700 Subject: [PATCH] Respect `nodeVersion: false` option (#762) --- lib/options-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || [])];