fix(build): declare @hanzo/docs-* workspace deps packages actually import

openapi/story/cli/python imported @hanzo/docs-base-ui (and others) without
declaring it. Under pnpm strict isolation Turbopack resolves from the importing
package's node_modules and couldn't find base-ui's subpath exports
(components/ui/button, components/tabs, utils/use-copy-button) — webpack was
lenient. Declare the missing workspace deps so resolution is deterministic.
This commit is contained in:
2026-07-08 06:48:47 -07:00
parent e1896f1a58
commit d05ab8eb6c
6 changed files with 17 additions and 5 deletions
+3
View File
@@ -35,6 +35,9 @@
},
"dependencies": {
"@clack/prompts": "^1.4.0",
"@hanzo/docs-base-ui": "workspace:*",
"@hanzo/docs-epub": "workspace:*",
"@hanzo/docs-ui": "workspace:*",
"commander": "^14.0.3",
"fuma-cli": "^0.1.1",
"picocolors": "^1.1.1",
+3
View File
@@ -44,6 +44,9 @@
"@clack/prompts": "^1.4.0",
"@commander-js/extra-typings": "^14.0.0",
"@hanzo/docs-cli": "workspace:*",
"@hanzo/docs-core": "workspace:*",
"@hanzo/docs-org": "workspace:*",
"@hanzo/docs-ui": "workspace:*",
"commander": "^14.0.3",
"fuma-cli": "^0.1.1",
"picocolors": "^1.1.1",
+3 -1
View File
@@ -51,6 +51,8 @@
"types:check": "tsc --noEmit"
},
"dependencies": {
"@hanzo/docs-base-ui": "workspace:*",
"@hanzo/docs-openapi": "workspace:*",
"@mdx-js/mdx": "^3.1.1",
"@standard-schema/spec": "^1.1.0",
"chokidar": "^5.0.0",
@@ -59,8 +61,8 @@
"js-yaml": "^4.1.1",
"mdast-util-mdx": "^3.0.0",
"picocolors": "^1.1.1",
"rehype-raw": "^7.0.0",
"picomatch": "^4.0.4",
"rehype-raw": "^7.0.0",
"tinyexec": "^1.2.2",
"tinyglobby": "^0.2.16",
"unified": "^11.0.5",
+3 -2
View File
@@ -48,6 +48,7 @@
},
"dependencies": {
"@fumari/json-schema-ts": "^0.0.2",
"@hanzo/docs-base-ui": "workspace:*",
"@hanzo/docs-stf": "workspace:*",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-dialog": "^1.1.15",
@@ -59,11 +60,11 @@
"hast-util-to-jsx-runtime": "^2.3.6",
"js-yaml": "^4.1.1",
"lucide-react": "^1.17.0",
"openapi-sampler": "^1.6.1",
"remark": "^15.0.1",
"remark-rehype": "^11.1.2",
"shiki": "^4.1.0",
"tailwind-merge": "^3.6.0",
"openapi-sampler": "^1.6.1"
"tailwind-merge": "^3.6.0"
},
"devDependencies": {
"@fastify/deepmerge": "^3.2.1",
+2 -1
View File
@@ -42,6 +42,7 @@
"types:check": "tsc --noEmit"
},
"dependencies": {
"@hanzo/docs-base-ui": "workspace:*",
"class-variance-authority": "^0.7.1",
"js-yaml": "^4.1.1",
"lucide-react": "^1.17.0",
@@ -67,4 +68,4 @@
"optional": true
}
}
}
}
+3 -1
View File
@@ -34,6 +34,8 @@
"types:check": "tsc --noEmit"
},
"dependencies": {
"@hanzo/docs-base-ui": "workspace:*",
"@hanzo/docs-core": "workspace:*",
"@hanzo/docs-stf": "workspace:*",
"@radix-ui/react-select": "^2.2.6",
"class-variance-authority": "^0.7.1",
@@ -80,4 +82,4 @@
"@fastify/deepmerge": "3.2.1",
"@ungap/structured-clone": "1.3.1"
}
}
}