mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 22:36:27 +00:00
Three defects, all of the same shape as the duplicate `dependencies` key: a second copy of something silently shadowing the real one. - pkgs/data was a second workspace project ALSO named @hanzo/data (private 0.1.0, a strict subset of pkg/[email protected] which superseded it — see CONSOLIDATION.md). pnpm tolerated the collision; turbo refuses to build a graph with it ("Failed to add workspace @hanzo/data ... it already exists"), so `pnpm build` at the root has been dead, and with it the ONE mechanism that orders pkgs/{tokens,products} ahead of pkg/ui. Nothing linked it. Gone. - turbo.json `typecheck` declared no dependsOn, so it ran before its deps' .d.ts existed; and `build` listed only dist/** as an output while pkg/data emits to types/**, so a cache hit restored nothing and left @hanzo/ui unable to resolve @hanzo/data. Both edges now declared. - @hanzogui/lucide-icons-2 is imported by 16 files in pkg/ui/src and shipped in dist/product/index.js, but was only a devDependency: `require('@hanzo/ui /product')` from a clean consumer install threw MODULE_NOT_FOUND. It sits on the gui 7.x train and pulls @hanzogui/[email protected], so it goes where @hanzogui/next-theme already is — peerDependencies, one core per app — not into dependencies, which would license a second copy. From a wiped dist tree: turbo run build --filter=@hanzo/ui... -> 4/4 tasks, then FULL TURBO restores pkg/data/types from cache. In pkg/ui: npx tsc --noEmit -> 0 errors, npm run build -> ESM + CJS + .d.ts. Co-authored-by: Hanzo Dev <[email protected]>
65 lines
1.2 KiB
JSON
65 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"globalEnv": ["NODE_ENV"],
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"env": [
|
|
"NEXT_PUBLIC_APP_URL",
|
|
"UPSTASH_REDIS_REST_URL",
|
|
"UPSTASH_REDIS_REST_TOKEN",
|
|
"COMPONENTS_REGISTRY_URL",
|
|
"REGISTRY_URL",
|
|
"npm_config_user_agent",
|
|
"https_proxy",
|
|
"V0_URL",
|
|
"V0_EDIT_SECRET",
|
|
"DEPLOYMENT_PROTECTION_BYPASS"
|
|
],
|
|
"outputs": ["dist/**", "types/**", ".next/**", "!.next/cache/**"]
|
|
},
|
|
"preview": {
|
|
"env": ["NEXT_PUBLIC_APP_URL"],
|
|
"outputs": ["dist/**", ".next/**"]
|
|
},
|
|
"start": {
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"lint": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"lint:fix": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"format:check": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"format:write": {
|
|
"outputs": []
|
|
},
|
|
"typecheck": {
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"dev": {
|
|
"cache": false
|
|
},
|
|
"check": {
|
|
"cache": false
|
|
},
|
|
"test": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"registry:build": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"registry": {
|
|
"outputs": []
|
|
}
|
|
}
|
|
}
|