From df2a44ed8251e656ebec456c7b08f49bd82d79f9 Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Sun, 11 Dec 2022 16:19:53 +0000 Subject: [PATCH] Fix jupyter-releaser CI check by moving hooks to `pyproject.toml` --- package.json | 12 ------------ pyproject.toml | 4 ++++ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 079638d..caa8b6a 100644 --- a/package.json +++ b/package.json @@ -107,17 +107,5 @@ "bundled": false } } - }, - "jupyter-releaser": { - "hooks": { - "before-build-npm": [ - "python -m pip install jupyterlab~=3.1", - "jlpm", - "jlpm build:prod" - ], - "before-build-python": [ - "jlpm clean:all" - ] - } } } diff --git a/pyproject.toml b/pyproject.toml index 7dc95e2..8ef7163 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,3 +72,7 @@ build_dir = "jupyterlab_ui_profiler/labextension" [tool.jupyter-releaser.options] version_cmd = "hatch version" + +[tool.jupyter-releaser.hooks] +before-build-npm = ["python -m pip install jupyterlab~=3.1", "jlpm", "jlpm build:prod"] +before-build-python = ["jlpm clean:all"]