Cannot read package files on Windows
JoshuaKGoldberg opened this issue ยท 2 comments
JoshuaKGoldberg commented
๐ Bug Report
tslint-to-eslint-configversion: 2.6.0- ESLint version: N/A
- Node version: 12.X, 14.X
Actual Behavior
When trying to find package.json dependencies, cat path/to/package.json is a CLI command that gets run.
Expected Behavior
cat doesn't exist on Windows.
Reproduction
On Windows, npx tslint-to-eslint-config and see the error in findOriginalConfigurations for package.
Spotted in #1149.
JoshuaKGoldberg commented
I believe #1151 is the right fix and I should recreate it, but I'm waiting for confirmation in angular-eslint/angular-eslint#571 to be sure.
JoshuaKGoldberg commented
angular-eslint/angular-eslint#571 (comment)
Hmm, I'm not convinced this won't come back again if I revert the revert. The original issue (typescript-eslint/tslint-to-eslint-config#1150) is that tslint-to-eslint-config tries using
caton Windows. I can switch that to usingtypeon Windows.