-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support git hosted package dependencies when versioning (#256)
Co-authored-by: Mike Diarmid <[email protected]>
- Loading branch information
Showing
5 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,33 @@ Once satisfied with your pending releases, release them to [pub.dev](https://pub | |
```dart | ||
melos publish --no-dry-run | ||
``` | ||
|
||
## Git hosted packages | ||
|
||
To use this feature enable it in `melos.yaml` | ||
```yaml | ||
command: | ||
version: | ||
updateGitTagRefs: true # defaults to false | ||
``` | ||
If your packages are private and don't publish to [pub.dev](https://pub.dev), you can use the tag generated as git reference in your `pubspec.yaml` file and Melos will ensure the versions are updated accordingly. | ||
|
||
Example: | ||
```yaml | ||
dependencies: | ||
internal_dep: | ||
git: | ||
url: [email protected]:org/repo.git | ||
path: packages/internal_dep | ||
ref: internal_dep-v0.0.1 | ||
# will be updated to: | ||
dependencies: | ||
internal_dep: | ||
git: | ||
url: [email protected]:org/repo.git | ||
path: packages/internal_dep | ||
ref: internal_dep-v0.0.2 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters