@@ -30,7 +30,7 @@ def bump(force: bool, spec: str) -> None:
30
30
)
31
31
if len (output ) > 0 :
32
32
print (output )
33
- # raise Exception("Must be in a clean git state with no untracked files")
33
+ raise Exception ("Must be in a clean git state with no untracked files" )
34
34
35
35
print (f"Executing 'python -m hatch version { spec } '..." )
36
36
run (
@@ -41,11 +41,11 @@ def bump(force: bool, spec: str) -> None:
41
41
lerna_cmd = LERNA_CMD
42
42
js_spec = spec
43
43
if spec in ["alpha" , "a" , "beta" , "b" , "rc" ]:
44
- js_spec = " --force-publish prerelease"
44
+ js_spec = "--force-publish prerelease"
45
45
elif spec == "release" :
46
- js_spec = " --conventional-commits --no-changelog --conventional-graduate"
46
+ js_spec = "--conventional-commits --no-changelog --conventional-graduate"
47
47
else :
48
- js_spec + = f" --force-publish"
48
+ js_spec = f"--force-publish " + js_spec
49
49
50
50
# bump the JS packages
51
51
if force :
@@ -54,6 +54,9 @@ def bump(force: bool, spec: str) -> None:
54
54
print (f"Executing '{ lerna_cmd } '..." )
55
55
run (shlex .split (lerna_cmd ), cwd = HERE , check = True , shell = True )
56
56
57
+ print (f"Changed made:" )
58
+ run (["git" , "diff" ], cwd = HERE , check = True )
59
+
57
60
58
61
if __name__ == "__main__" :
59
62
parser = argparse .ArgumentParser ("bump_version" , "Bump package version" )
0 commit comments