Skip to content

Commit acc894d

Browse files
author
zeekay
committed
fix(ci): build @hanzo/event before the docs build
link-workspace-packages=true, so the app resolves @hanzo/event to pkgs/event no matter what the range says, and its exports point at dist/ — which only exists once the package is built. The workflow already builds pkgs/ui for the same reason; event needs the same step. Declare the dep by published range like every other @hanzo/* dep in the app.
1 parent d9b5123 commit acc894d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/deploy-gh-pages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ jobs:
5959
run: |
6060
cd pkgs/ui && pnpm build
6161
62+
# link-workspace-packages=true, so the app resolves @hanzo/event to
63+
# pkgs/event whatever the version range says. Its exports point at dist/,
64+
# which only exists once the package is built.
65+
- name: Build @hanzo/event package
66+
run: |
67+
cd pkgs/event && pnpm build
68+
6269
- name: Capture screenshots (optional)
6370
if: github.event.inputs.capture_screenshots == 'true'
6471
working-directory: ./app

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@dnd-kit/sortable": "^10.0.0",
3232
"@dnd-kit/utilities": "^3.2.2",
3333
"@faker-js/faker": "^10.4.0",
34-
"@hanzo/event": "workspace:*",
34+
"@hanzo/event": "^0.3.1",
3535
"@hanzo/docs-core": "16.5.3",
3636
"@hanzo/docs-docgen": "3.0.7",
3737
"@hanzo/docs-mdx": "14.3.0",

0 commit comments

Comments
 (0)