Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] inconsistent behaviour with a file: dependency #7830

Open
shigma opened this issue Jan 22, 2020 · 0 comments
Open

[Bug Report] inconsistent behaviour with a file: dependency #7830

shigma opened this issue Jan 22, 2020 · 0 comments

Comments

@shigma
Copy link

shigma commented Jan 22, 2020

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

bug report

What is the current behavior?

root/
  package.json
  foo/
    index.js
    package.json

root/package.json:

{
  "dependencies": {
    "foo": "file:foo"
  }
}

root/foo/package.json

{
  "name": "foo",
  "version": "0.0.0",
  "main": "index.js"
}

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

  • npm i generates a node_modules folder with a symlink of foo in it.
  • yarn generates a node_modules folder with a copy of foo in it.

What is the expected behavior?

The result of yarn should be consistent with npm i.

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

  • node: 12.14.1
  • yarn: 1.19.2
  • os: windows 10

Also probably related to #1794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant