Created by: dstaley
This PR adds TypeScript as an optional peer dependency for react-scripts
. This modification is necessary to get react-scripts
working with Yarn v2, and will enable the TypeScript template for create-react-app
to work with Yarn v2.
This PR uses the peerDependenciesMeta
key, which signifies to Yarn that typescript
is an optional dependency. npm will support the key in the future, in which case "typescript": "*"
can be added to peerDependencies
. Until that change is made, simply having peerDependenciesMeta
will be enough for Yarn, and won't adversely impact users of npm.
Other relevant issues: yarnpkg/berry/pull/475
/cc @iansu
Activity
requested review from @root
requested review from @root
requested review from @root
requested review from @root
Created by: facebook-github-bot
Hi dstaley! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.
If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!
added CLA Signed label
added tag: bug fix label
changed milestone to %3.3