Skip to content

Commit

Permalink
Add: Allow to update JavaScript project versions
Browse files Browse the repository at this point in the history
Add missing JavaScriptVersionCommand to get_current_version release
helper function to allow updating the release version in JavaScript
based projects.
  • Loading branch information
bjoernricks committed Jan 9, 2023
1 parent f751938 commit 55b5fe0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pontos/release/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
from pontos import version
from pontos.git import Git, GitError
from pontos.terminal import Terminal
from pontos.version import CMakeVersionCommand, PythonVersionCommand
from pontos.version import (
CMakeVersionCommand,
JavaScriptVersionCommand,
PythonVersionCommand,
)
from pontos.version.helper import VersionError

DEFAULT_TIMEOUT = 1000
Expand Down Expand Up @@ -112,6 +116,7 @@ def get_current_version(terminal: Terminal) -> Optional[str]:
available_cmds = [
("CMakeLists.txt", CMakeVersionCommand),
("pyproject.toml", PythonVersionCommand),
("package.json", JavaScriptVersionCommand),
]
for file_name, cmd in available_cmds:
project_definition_path = Path.cwd() / file_name
Expand Down

0 comments on commit 55b5fe0

Please sign in to comment.