This makes it possible to run the tests on Windows.
Note that the tests still fail on Windows, because precise-commits produces wrong results when it encounters CRLF line separators. However at least it is possible to run the tests on Windows now.
I am working on a separate patch to add CRLF support.
This PR replaces the use of some Unix-specific CLI tools with pure JS implementations.
rm -rf
is replaced by rimraf.mkdir -p
is replaced by mkdirpThis makes it possible to run the tests on Windows.
Note that the tests still fail on Windows, because precise-commits produces wrong results when it encounters CRLF line separators. However at least it is possible to run the tests on Windows now.
I am working on a separate patch to add CRLF support.