diff --git a/python/cppjswasm/pyproject.toml.jinja b/python/cppjswasm/pyproject.toml.jinja index 2e0ca24..f8bbbd9 100644 --- a/python/cppjswasm/pyproject.toml.jinja +++ b/python/cppjswasm/pyproject.toml.jinja @@ -74,6 +74,10 @@ current_version = "0.1.0" commit = true tag = true commit_args = "-s" +pre_commit_hooks = [ + "pnpm --dir js install --lockfile-only --no-frozen-lockfile --ignore-scripts", + "git add js/pnpm-lock.yaml", +] [[tool.bumpversion.files]] filename = "{{ module }}/__init__.py" diff --git a/python/js/pyproject.toml.jinja b/python/js/pyproject.toml.jinja index f73985d..e228543 100644 --- a/python/js/pyproject.toml.jinja +++ b/python/js/pyproject.toml.jinja @@ -68,6 +68,10 @@ current_version = "0.1.0" commit = true tag = true commit_args = "-s" +pre_commit_hooks = [ + "pnpm --dir js install --lockfile-only --no-frozen-lockfile --ignore-scripts", + "git add js/pnpm-lock.yaml", +] [[tool.bumpversion.files]] filename = "{{ module }}/__init__.py" diff --git a/python/jupyter/pyproject.toml.jinja b/python/jupyter/pyproject.toml.jinja index b85c583..7bd9162 100644 --- a/python/jupyter/pyproject.toml.jinja +++ b/python/jupyter/pyproject.toml.jinja @@ -75,6 +75,10 @@ current_version = "0.1.0" commit = true tag = true commit_args = "-s" +pre_commit_hooks = [ + "pnpm --dir js install --lockfile-only --no-frozen-lockfile --ignore-scripts", + "git add js/pnpm-lock.yaml", +] [[tool.bumpversion.files]] filename = "{{ module }}/__init__.py" diff --git a/python/rust/pyproject.toml.jinja b/python/rust/pyproject.toml.jinja index 941d521..dcdec3f 100644 --- a/python/rust/pyproject.toml.jinja +++ b/python/rust/pyproject.toml.jinja @@ -70,6 +70,10 @@ current_version = "0.1.0" commit = true tag = true commit_args = "-s" +pre_commit_hooks = [ + "cargo update --workspace", + "git add Cargo.lock", +] [[tool.bumpversion.files]] filename = "{{ module }}/__init__.py" diff --git a/python/rustjswasm/pyproject.toml.jinja b/python/rustjswasm/pyproject.toml.jinja index c96e53a..c8bd654 100644 --- a/python/rustjswasm/pyproject.toml.jinja +++ b/python/rustjswasm/pyproject.toml.jinja @@ -72,6 +72,11 @@ current_version = "0.1.0" commit = true tag = true commit_args = "-s" +pre_commit_hooks = [ + "cargo update --workspace", + "pnpm --dir js install --lockfile-only --no-frozen-lockfile --ignore-scripts", + "git add Cargo.lock js/pnpm-lock.yaml", +] [[tool.bumpversion.files]] filename = "{{ module }}/__init__.py"