File tree Expand file tree Collapse file tree 1 file changed +1
-44
lines changed
Expand file tree Collapse file tree 1 file changed +1
-44
lines changed Original file line number Diff line number Diff line change 66# of the version. Technically we'd want to bump the non-prerelease portion as
77# well if we wanted this to be SemVer-compliant, but it was simpler not to.
88# This is just for testing, it doesn't need to strictly follow SemVer.
9- .version |= split ("-" )[0 ] + "-preview-\( $hash ) " |
10-
11- # The workspace dependencies are updated to point to the exact preview build
12- # version, so that Yarn does not try to resolve a different version from the
13- # registry.
14-
15- if has ("devDependencies" ) then
16- .devDependencies |= with_entries (
17- if .value | startswith ("workspace:" ) then
18- .key |= sub ("@metamask/" ; "@metamask-previews/" ) |
19- .value |= sub ("workspace:\\ ^" ; "workspace:*" )
20- else
21- .
22- end
23- )
24- else
25- .
26- end |
27-
28- if has ("peerDependencies" ) then
29- .peerDependencies |= with_entries (
30- if .value | startswith ("workspace:" ) then
31- .key |= sub ("@metamask/" ; "@metamask-previews/" ) |
32- .value |= sub ("workspace:\\ ^" ; "workspace:*" )
33- else
34- .
35- end
36- )
37- else
38- .
39- end |
40-
41- if has ("dependencies" ) then
42- .dependencies |= with_entries (
43- if .value | startswith ("workspace:" ) then
44- .key |= sub ("@metamask/" ; "@metamask-previews/" ) |
45- .value |= sub ("workspace:\\ ^" ; "workspace:*" )
46- else
47- .
48- end
49- )
50- else
51- .
52- end
9+ .version |= split ("-" )[0 ] + "-preview-\( $hash ) "
You can’t perform that action at this time.
0 commit comments