Skip to content

yarn install for git dependency does not 'pack' #3429

Closed
@bengeorge

Description

@bengeorge

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

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

  "dependencies": {
    "foo": "git+https://foo.git#1.0.0"
  }

yarn install

Results in entire contents of the foo repo in the node_modules/foo folder. I should note the same occurs when refering to a file location eg: a dependency of "foo": "../foo"

What is the expected behavior?
Should behave like npm. The node_modules/foo should only contain the files that would be contained if you did a $/dev/foo>yarn pack (ie: obey the .gitignore, .npmignore rules etc. etc.).

Please mention your node.js, yarn and operating system version.
windows 7 + yarn 0.24.4 + v6.10.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions