betterer icon indicating copy to clipboard operation
betterer copied to clipboard

Yarn install shows a warning for missing peer dependencies

Open ashharrison90 opened this issue 3 years ago • 1 comments
trafficstars

Describe the bug Installing @betterer/betterer and @betterer/cli on yarn 3 shows warnings for missing peer dependencies

To Reproduce yarn install @betterer/betterer and @betterer/cli using yarn 3. there's probably a way to see these missing peer deps in npm as well.

Expected behavior Install should be clean. 😄

Screenshots

➤ YN0000: ┌ Resolution step
➤ YN0002: │ @betterer/betterer@npm:5.1.6 doesn't provide @types/node (p37c1b), requested by ts-node
➤ YN0002: │ @betterer/cli@npm:5.1.6 doesn't provide typescript (pe846e), requested by @phenomnomnominal/tsquery

Versions (please complete the following information):

  • OS: [e.g. Windows, MacOS]
  • Betterer Version 5.1.6
  • Node Version 16.13.0

Debug log:

Additional context think this is just a case of adding @types/node as a devDep for @betterer/betterer, and typescript as a dependency for @betterer/cli

ashharrison90 avatar Feb 11 '22 12:02 ashharrison90

Hmm yeah, I need to think about this more because I don't want to make assumptions about the version of Node that is installed, and I'd like to allow the user to have their own version of TypeScript 🤔

phenomnomnominal avatar Feb 12 '22 11:02 phenomnomnominal