File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
packages/melos/lib/src/common/extensions Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ command:
43
43
version :
44
44
# Generate commit links in package changelogs.
45
45
linkToCommits : true
46
- # Only allow versioning to happen on main branch.
47
- branch : main
48
46
# Additionally build a changelog at the root of the workspace.
49
47
workspaceChangelog : true
50
48
hooks :
Original file line number Diff line number Diff line change @@ -50,22 +50,26 @@ extension HostedDependencyExtension on HostedDependency {
50
50
return inlineVersion
51
51
? version.toString ()
52
52
: {
53
- 'version' : version.toString (),
54
- if (hosted != null )
55
- 'hosted' : {
56
- 'name' : hosted! .declaredName,
57
- 'url' : hosted! .url? .toString (),
58
- },
53
+ 'hosted' : {
54
+ 'version' : version.toString (),
55
+ if (hosted != null )
56
+ 'hosted' : {
57
+ 'name' : hosted! .declaredName,
58
+ 'url' : hosted! .url? .toString (),
59
+ },
60
+ },
59
61
};
60
62
}
61
63
}
62
64
63
65
extension GitDependencyExtension on GitDependency {
64
66
Map <String , dynamic > toJson () {
65
67
return {
66
- 'url' : url.toString (),
67
- if (ref != null ) 'ref' : ref,
68
- if (path != null ) 'path' : path,
68
+ 'git' : {
69
+ 'url' : url.toString (),
70
+ if (ref != null ) 'ref' : ref,
71
+ if (path != null ) 'path' : path,
72
+ },
69
73
};
70
74
}
71
75
}
You can’t perform that action at this time.
0 commit comments