Skip to content
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

Use path.win32 from "path" over importing from "path/win32" #199

Merged
merged 6 commits into from
Mar 7, 2022

Conversation

ericcornelissen
Copy link
Owner

Closes #197

This is because `path/win32` was only added in Node.js v16. In Node.js
v10 to v14 only `path.win32` is available (which is still available in
v16, and v17, as well).
@ericcornelissen ericcornelissen added the bug Something isn't working label Mar 7, 2022
@codecov
Copy link

codecov bot commented Mar 7, 2022

Codecov Report

Merging #199 (e0c62cd) into main (1d42e19) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #199   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          701       701           
=========================================
  Hits           701       701           
Impacted Files Coverage Δ
src/win.js 100.00% <100.00%> (ø)

And all "normal" tests only on the development Node.js version. This is
necessary because the source code is written in ESM, but Node v10.13.0
does not support ESM, so running the "normal" tests is non-trivial.
Running the CommonJS test suite on every supported Node.js version will
at least catch faulty imports and, to an extends, faulty implementations
for older Node.js versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot find module 'path/win32' with Shescape 1.5.3
1 participant