-
-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix nodeVersion:false
not working
#606
Conversation
You could probably just update the test here: Lines 233 to 244 in a2eada4
|
I added 3 tests like in |
Did you manually verify that this PR fixes the issue for you? |
When I tried it yeah, but now I see it's wrong. I'll mark it as a draft and have another try at it later. What worked for me is this patch but then the current tests fail so this can't be right either: lib/options-manager.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/options-manager.js b/lib/options-manager.js
index e2dd2d4..b83a453 100644
--- a/lib/options-manager.js
+++ b/lib/options-manager.js
@@ -207,6 +207,8 @@ const mergeOptions = (options, xoOptions = {}, enginesOptions = {}) => {
...options,
});
+ mergedOptions.nodeVersion = xoOptions.nodeVersion === false ? false : xoOptions.nodeVersion;
+
mergedOptions.extensions = [...DEFAULT_EXTENSION, ...(mergedOptions.extensions || [])];
mergedOptions.ignores = getIgnores(mergedOptions);
|
This is what works for me, but tests break miserably. I'm going to close this for someone else more familiar with the codebase to handle. |
IMO we should keep this issue open, for visibility |
Fixes #598
PS. I'm not familiar with the codebase and its tests, but if someone guides me I could try adding a test. Alternatively, feel free to push to the branch :)