Skip to content

Cannot read package files on Windows #1150

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

🐛 Bug Report

  • tslint-to-eslint-config version: 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.

Metadata

Metadata

Labels

status: accepting prsPlease, send in a PR to resolve this! ✨type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions