Skip to content

Commit

Permalink
Respect nodeVersion: false option (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jul 23, 2024
1 parent b537b21 commit c965843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/options-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || [])];
Expand Down

0 comments on commit c965843

Please sign in to comment.