Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/hub-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
"@devframes/json-render": "workspace:*",
"devframe": "workspace:*"
},
"peerDependenciesMeta": {
"@devframes/json-render": {
"optional": true
}
},
"devDependencies": {
"@antfu/design": "catalog:frontend",
"@devframes/hub": "workspace:*",
Expand Down
7 changes: 6 additions & 1 deletion packages/hub-ui/src/client/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import type { DevframeViewLauncher } from '@devframes/hub/types'
// Importing the hub-mounted json-render integration registers its
// `'json-render'` dock entry (a serializable `view` ref, not a live handle)
// on the hub's open dock union via declaration merging.
// on the hub's open dock union via declaration merging. This has to be a
// value import, not `import type`, because TS rejects a type-only
// side-effect import (no bindings to mark as type-only) — but it's still
// fully erased at build time since nothing in dist ever references it, so
// @devframes/json-render staying an *optional* peer below doesn't change
// what ships.
import '@devframes/json-render/hub'

/**
Expand Down
Loading