aws/aws-cdk

[cli] Support installing dependencies with yarn

Open

#11.234 geöffnet am 31. Okt. 2020

Auf GitHub ansehen
 (8 Kommentare) (5 Reaktionen) (0 zugewiesene Personen)TypeScript (3.530 Forks)batch import
effort/smallfeature-requestgood first issuep2package/tools

Repository-Metriken

Stars
 (10.710 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14T 11h) (68 gemergte PRs in 30 T)

Beschreibung

Provide a way for new projects to use yarn over npm for installing dependencies.

Use Case

I primarily use yarn for all my projects, so when starting new cdk projects I have to delete the package.lock and node modules and reinstall using yarn.

Proposed Solution

It seems like the project by default uses yarn in its codebase, so maybe default to using yarn if it's there, and if not use npm.

Another option is to provide a flag on the init command that will indicate if to use yarn.

Other

I'd like to get feedback on the approach before I start a PR for this.

  • :wave: I may be able to implement this feature request
  • :warning: This feature might incur a breaking change

This is a :rocket: Feature Request

Contributor Guide