Skip to content

Commit 7a0080c

Browse files
authored
Fix artifact config for hatch (#850)
* fix artifact config * add before-build-python stage
1 parent 1361a37 commit 7a0080c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"version": "1.0.0",
55
"license": "BSD",
66
"scripts": {
7-
"build": "copyfiles -f node_modules/bootstrap/dist/css/*.min.* jupyter_server/static/style",
8-
"postinstall": "npm run build"
7+
"build": "copyfiles -f node_modules/bootstrap/dist/css/*.min.* jupyter_server/static/style"
98
},
109
"dependencies": {
1110
"bootstrap": "^3.4.0",

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ test = [
7676
jupyter-server = "jupyter_server.serverapp:main"
7777

7878
[tool.hatch.build]
79-
artifacts = ["jupyter_server/static/style/*.*"]
79+
artifacts = ["jupyter_server/static/style"]
8080

8181
[tool.black]
8282
line_length = 100
@@ -104,6 +104,9 @@ filterwarnings = [
104104
[tool.jupyter-releaser]
105105
skip = ["check-links"]
106106

107+
[tool.jupyter-releaser.hooks]
108+
before-build-python = ["npm install", "npm run build"]
109+
107110
[tool.jupyter-releaser.options]
108111
post-version-spec = "dev"
109112
pydist_resource_paths = ["jupyter_server/static/style/bootstrap.min.css", "jupyter_server/static/style/bootstrap-theme.min.css"]

0 commit comments

Comments
 (0)