-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ts-node
as a peerDependency
#8779
Conversation
🦋 Changeset detectedLatest commit: 7d27f55 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Per this #8685 (comment), shouldn't the |
@sjdemartini Yeah, those need to be dealt with in some way too, but There are also some peer dependency issues with some of the dependencies pulled in by
There might need to be some larger discussion around what strategy should be taken for this problem. There should probably be something in place to prevent these sorts of issues from creeping into the codebase in a more general way. It might be nice taking care of those when adding a yarn doctor check to CI that fails on any peer dependency issues. If this repo were upgraded to modern Yarn, that might help catch these module resolution kinds of problems earlier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm yeah we need to find a way to support yarn pnp
🤔
Re underlying dependencies having dependency issues, the underlying |
@saihaj I got strange result after upgrading to On previous versions, there was only 1 warning about
Now I have 2 same warnings:
Since
I think the 1st path is preferrable. |
@yura3d the reason we do |
Description
Related #8685
This PR fixes the above issue by making
ts-node
apeerDependency
of the CLI package.ts-node
is necessary as apeerDependency
because of the use ofcosmiconfig-typescript-loader
and its ownpeerDependency
onts-node
. ThepeerDependency
specification added in this PR matches that ofcosmiconfig-typescript-loader
. This PR also updates various places in documentation wherets-node
should be installed by the consumer.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
I've used the
packageExtensions
workaround in the issue with this configuration and it works.Checklist:
Further comments
I skimmed the contributing guidelines given my current time constraints. Given this is a pretty tiny fix and that there's already an open issue (or two?) for this problem, I assume it might be considered. Something like this PR is the fix. If this PR isn't accepted, feel free to copy whatever from this PR.