Skip to content
  • Ray Schamp's avatar
    534feb9f
    Pin React devDependencies, add peerDependencies · 534feb9f
    Ray Schamp authored
    When the package is installed as a dependency, it should warn the installer that React is a peerDependency.  When installed this way, the devDependencies won't be installed, so only one version of React will be present. However when it's installed as a standalone project, React should be installed automatically as a devDependency.
    
    I think this gives us the best of both worlds — simple development setup as well as supporting usage as an installed package.
    534feb9f
    Pin React devDependencies, add peerDependencies
    Ray Schamp authored
    When the package is installed as a dependency, it should warn the installer that React is a peerDependency.  When installed this way, the devDependencies won't be installed, so only one version of React will be present. However when it's installed as a standalone project, React should be installed automatically as a devDependency.
    
    I think this gives us the best of both worlds — simple development setup as well as supporting usage as an installed package.
Loading Analyzing file…
Loading