Skip to content

GoodForOneFare/dependency-install-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yarn installs a dependency's optional dependencies by default. You can use --ignore-optional to work around this.

I forget this so often that this repo now exists :|

To verify:

  • Clone this repo
  • yarn test
    • This will install relevant dependencies, and throw an exception if:
      • The optional dependency is not installed
      • The peer dependency is installed

Expected output:

Is the optional dependency '@goodforonefare/solo-dependency-1' installed?
    true
Is the peer dependency '@goodforonefare/solo-dependency-2' installed?
    false

About

Remind me how yarn treats optional/peer dependencies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published