diff --git a/package.json b/package.json index 5bf9223..d8af055 100644 --- a/package.json +++ b/package.json @@ -82,16 +82,5 @@ "stylelint-prettier": "^2.0.0", "ts-jest": "^26.0.0", "typescript": "~4.1.3" - }, - "jupyter-releaser": { - "hooks": { - "before-build-npm": [ - "python -m pip install jupyterlab~=3.1", - "jlpm" - ], - "before-build-python": [ - "jlpm clean:all" - ] - } } } diff --git a/pyproject.toml b/pyproject.toml index 4cd6139..d0e4b27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,3 +78,11 @@ build_dir = "jupyterlab_rise/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"]