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

--fix does not work when using a package within the monorepo #415

Open
ddzz opened this issue Apr 17, 2022 · 0 comments
Open

--fix does not work when using a package within the monorepo #415

ddzz opened this issue Apr 17, 2022 · 0 comments

Comments

@ddzz
Copy link
Collaborator

ddzz commented Apr 17, 2022

package.json:

{
  "private": "true",
  "dependencies": {
    "react-is": "npm:react-is"
  },
  "workspaces": [
    "packages/*"
  ]
}

packages/react-is/package.json:

{
  "name": "react-is",
  "version": "18.0.0"
}

packages/a/package.json:

{
  "name": "a",
  "version": "1.0.0",
  "dependencies": {
    "react-is": "^18.0.0"
  }
}
% yarn check-dependency-version-consistency . --fix
Found 1 dependency with mismatching versions across the workspace. Fix with `--fix`.
╔══════════════╤════════╤══════════╗
║ react-is     │ Usages │ Packages ║
╟──────────────┼────────┼──────────╢
║ npm:react-is │ 1      │ (Root)   ║
╟──────────────┼────────┼──────────╢
║ ^18.0.0      │ 1      │ a        ║
╟──────────────┼────────┼──────────╢
║ 18.0.0       │ 1      │ react-is ║
╚══════════════╧════════╧══════════╝
@ddzz ddzz changed the title --fix does not work using a package within the monorepo --fix does not work when using a package within the monorepo Apr 17, 2022
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