combine-json
combine-json copied to clipboard
Invalid parsing on Windows
Parses are invalid and test fails on a Windows device because of the imported sep
which return \
when the path returned is /
. It seems like the path returned defaulted to /
on some time. It will cause error such as numerated json file in a folder (0.json
, 1.json
...) does not result in an array,
If you are facing this issue change const parts = path.split(sep)
from sep
to "/"
. Not sure if it applies to other Windows (10) or Node version (mine is v16.13.2).