Skip to content

yarn no longer saves git/github packages in offline mirror #3154

@agibralter

Description

@agibralter

Do you want to request a feature or report a bug?

bug

What is the current behavior?

Given our ./package.json like this:

{
  "dependencies": {
    "@kadira/react-storybook-addon-info": "^3.3.0",
    "@kadira/storybook-ui": "^3.11.0",
    "internal-pkg": "git+ssh://[email protected]/me/internal-pkg.git#abcdef0",
    ...
  }
}

And ./.yarnrc:

yarn-offline-mirror "./vendor/npm_cache"
yarn-offline-mirror-pruning true

Running yarn no longer seems to save the dependencies from github/git in our npm_cache.

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Running ls on the ./vendor/npm_cache should include non-npm-hosted packages.

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

macOS 10.12.4:

$ which node
/Users/me/.nvm/versions/node/v6.9.4/bin/node

$ node -v
v6.9.4

$ which yarn
/usr/local/bin/yarn

$ yarn --version
0.23.2

(Node is installed via nvm and yarn via brew)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions