-
Notifications
You must be signed in to change notification settings - Fork 19
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
ts-pnp should be a peer/optional dependency. #7
Comments
Unfortunately if Starting from Yarn 1.14 (scheduled for release in a few days) we'll add support for optional peer dependencies, which will hopefully solve this issue - I'll just declare |
optionalDependencies are here! 🎉 Is it just a matter of adding it to "optionalDependencies": {
"typescript": "^3.4.5"
} |
Optional *peer dependency 🙂 It should already be good - |
To avoid getting an
unmet peer dependency "typescript@*"
warning,ts-pnp
should be a peer or optional dependency. Your only use ofts-pnp
is in an exported function that isn't used by your code. I don't see why your code should have anything typescript specific in it. If it's needed by external code, then make your interface more generic, and let that external code do whatever it needs to to hook in to your code.The text was updated successfully, but these errors were encountered: