Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

@endemolshinegroup/cosmiconfig-typescript-loader@3.0.2 doesn't provide typescript, requested by ts-node #147

Open
lensbart opened this issue Mar 6, 2021 · 2 comments

Comments

@lensbart
Copy link

lensbart commented Mar 6, 2021

See above

This warning gets shown when using Yarn 2, which is a bit more strict about subdependencies.

typescript is a peer dependency of ts-node, which is a dependency of @endemolshinegroup/cosmiconfig-typescript-loader. Typically it will already be installed in repositories consuming cosmiconfig-typescript-loader, but it should be included as a depencency (peer or otherwise) regardless.

@lensbart
Copy link
Author

Warning can be suppressed by supplying the following in .yarnrc.yml:

packageExtensions:
  # awaiting fix: https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/issues/147
  '@endemolshinegroup/cosmiconfig-typescript-loader@*':
    peerDependenciesMeta:
      typescript:
        optional: true

@larrifax
Copy link

Looks like there's a PR for this already #133. Let's hope it gets merged.

travi added a commit to travi/commitlint that referenced this issue Oct 2, 2021
in order to satisfy the peer requirement from
`@endemolshinegroup/cosmiconfig-typescript-loader`. this could be
removed if EndemolShineGroup/cosmiconfig-typescript-loader#147 is
satisfied upstream
travi added a commit to travi/commitlint that referenced this issue Oct 2, 2021
in order to satisfy the peer requirement from
`@endemolshinegroup/cosmiconfig-typescript-loader`. this could be
removed if EndemolShineGroup/cosmiconfig-typescript-loader#147 is
satisfied upstream

fixes conventional-changelog#2779
escapedcat pushed a commit to conventional-changelog/commitlint that referenced this issue Oct 3, 2021
in order to satisfy the peer requirement from
`@endemolshinegroup/cosmiconfig-typescript-loader`. this could be
removed if EndemolShineGroup/cosmiconfig-typescript-loader#147 is
satisfied upstream

fixes #2779
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants