invertase / melos

🌋 A tool for managing Dart projects with multiple packages. With IntelliJ and Vscode IDE support. Supports automated versioning, changelogs & publishing via Conventional Commits.
https://melos.invertase.dev/~melos-latest
Apache License 2.0
1.08k stars 193 forks source link

fix: Transitive dependencies cannot be overwritten #635

Closed JunhuaLin closed 6 months ago

JunhuaLin commented 6 months ago

Is there an existing issue for this?

Version

3.4.0

Description

The package dependencies are as follows: a -> b -> c

project structure: a --melos.yaml --packages ----b ----c

melos.yaml: packages:

melos.yaml is configured in a to specify c as a local path package by configuring packages and b as a remote dependency. Then execute melos bs.

Steps to reproduce

-

Expected behavior

-

Screenshots

-

Additional context and comments

-

spydon commented 6 months ago

You should have all packages listed in melos.yaml and also you shouldn't have a package in the root like you do, but inside packages or apps for example.

spydon commented 6 months ago

See https://melos.invertase.dev/getting-started#recommended-directory-structure