yarnpkg/yarn

Allow install only devDependencies

Open

#3.254 geöffnet am 25. Apr. 2017

Auf GitHub ansehen
 (45 Kommentare) (124 Reaktionen) (0 zugewiesene Personen)JavaScript (2.731 Forks)batch import
cat-featurehelp wantedneeds-discussiontriaged

Repository-Metriken

Stars
 (41.514 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Do you want to request a feature or report a bug? Hopefully this is a small feature request. I'd like a flag that allows me to only install devDependencies. This would allow me to split my flat installed client code from my build tools code.

Thanks to the fix in https://github.com/yarnpkg/yarn/issues/2781#issuecomment-296955569 I can now do:

yarn install --flat --production --modules-folder client_modules

And only install dependencies in my client_modules directory. This is awesome ❤️

If I also do yarn, it will install dependencies and devDependencies into my node_modules directory. But I already flat installed my dependencies into client_modules so installing them again in node_modules isn't necessary.

What is the current behavior? There's no way to only install devDependenices.

What is the expected behavior? A flag, maybe yarn install --dev-dependencies or something like that?

Contributor Guide