yarnpkg/yarn

Yarn --production tries to resolve devDeps as well

Open

#3.630 aberto em 13 de jun. de 2017

Ver no GitHub
 (55 comments) (48 reactions) (0 assignees)JavaScript (2.731 forks)batch import
cat-featurehelp wantedneeds-discussiontriaged

Métricas do repositório

Stars
 (41.514 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Do you want to request a feature or report a bug? This is a bug, or unexpected behaviour.

What is the current behavior?

  1. Have a package.json which have devDependencies and one of them are private
  2. Run yarn --production
  3. Yarn tries to resolve all packages and fails, because have no access to private packages

To fix that I need additional workaround with authToken (the problem arises in docker build process).

What is the expected behavior? Yarn should only resolve production packages when --production flag exposed.

Please mention your node.js, yarn and operating system version.

node -v
v8.1.0
yarn --version
0.24.6

Guia do colaborador