Files
ui/package.json
zeekayandHanzo Dev e1ae92cee4 fix(build): @hanzo/ui could not build or publish — three faults, one chain
Nothing has published from this repo since 8.0.28. 8.0.29 sits in git with the
new `./chat` entrypoint while npmjs serves 8.0.28, so every consumer resolving
`^8.0.17` silently gets a version without it — an import error in the dependent
and nothing at all here. Three independent faults, each hiding the next.

1. THE PUBLISH TRIGGER COULD NEVER FIRE FOR @hanzo/ui.
   `on.push.paths` matched `pkgs/*/package.json` only, and @hanzo/ui lives at
   pkg/ui (singular). The detect-changes job was already fixed to walk BOTH
   roots — its comment even says a `pkgs/*` glob made pkg/ packages "invisible …
   so no version bump of either could ever reach npmjs" — but the gate that
   decides whether that job runs was left matching one root. Fixed in the body,
   not in the thing that gates the body.

2. THE BUILD DID NOT BUILD ITS DEPENDENCIES.
   `pnpm --filter @hanzo/ui build` runs alone against siblings with no dist/.
   They type themselves through "types": "dist/index.d.ts", so tsc reports them
   as missing modules and buries the cause under unrelated-looking errors:
     src/product/SiteNav.tsx: Cannot find module '@hanzo/products'
     src/core/tokens.ts:      Cannot find module '@hanzo/tokens'
     src/gitops.ts:           Cannot find module '@hanzo/cd'
   plus a wave of implicit-any in the files that imported them, which reads like
   a source defect in @hanzo/ui and is not. Now `--filter <pkg>...`, which builds
   workspace dependencies in topological order.

3. TYPESCRIPT 7 BROKE EVERY tsup PACKAGE.
   Once the dependencies actually built, they died in rollup-plugin-dts, the
   declaration generator tsup uses:
     TypeError: Cannot read properties of undefined (reading 'useCaseSensitiveFileNames')
   TS7 changed the compiler-host API it reaches into. That killed @hanzo/cd,
   @hanzo/products and @hanzo/tokens, and @hanzo/ui cannot compile without their
   emitted types. The TS7 bump (a6425e241) had reached 2 of 19 packages here;
   the other 17 pin 5.x. Pinned root and pkg/ui back to ^5.9.3 to match them.

   That in turn required an explicit `moduleResolution` in tsconfig.cjs.json:
   it had been relying on TS7 dropping the TS5095 rule that `bundler` needs an
   ES module target, so under TS5 the CJS pass errored before emitting anything.
   Both are noted inline as the pair to revert together, once tsup ships a
   TS7-compatible rollup-plugin-dts.

Verified: `pnpm --filter '@hanzo/ui...' build` succeeds end to end; dist/ holds
50 chat files including the .cjs and .d.ts outputs. tsc errors dropped 15 -> 1
(0 in src/chat) — TS5 is cleaner here, not merely older. Tests 198 passed / 1
failed, and that is an improvement: src/chat/render.test.tsx previously could not
even load (@hanzogui/toast/v2 unresolvable) and now passes; the remaining failure
is a pre-existing missing Tamagui theme provider in
src/backends/gui/render.test.tsx, unrelated to compiler version.

No version bump in this commit on purpose — this proves the pipeline first. The
bump that actually publishes 8.0.29's contents comes next.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 22:29:14 -07:00

173 lines
6.1 KiB
JSON

{
"name": "ui",
"version": "0.0.1",
"private": true,
"license": "MIT",
"type": "module",
"author": {
"name": "hanzo",
"url": "https://x.com/hanzoai"
},
"workspaces": [
"app",
"apps/*",
"pkgs/*"
],
"scripts": {
"build": "turbo run build",
"build:cli": "turbo --filter=hanzo build",
"build:registry": "pnpm --filter=app build:registry && pnpm --filter=app lint:fix && pnpm format:write -- --loglevel silent",
"registry:build": "pnpm --filter=app registry:build && pnpm lint:fix && pnpm format:write -- --loglevel silent",
"registry": "turbo run registry",
"registry:capture": "pnpm --filter=app registry:capture",
"examples:build": "pnpm --filter=v4 examples:build",
"dev": "turbo run dev --parallel",
"hanzo-ui:dev": "turbo --filter=hanzo-ui dev",
"hanzo-ui": "pnpm --filter=hanzo-ui start:dev",
"hanzo-ui:test": "pnpm --filter=hanzo-ui test",
"cli:dev": "turbo --filter=hanzo-ui dev",
"cli:start": "pnpm --filter=hanzo-ui start:dev",
"cli:build": "pnpm --filter=hanzo-ui build",
"hanzo:dev": "turbo --filter=hanzo dev",
"hanzo": "pnpm --filter=hanzo start:dev",
"hanzo:prod": "pnpm --filter=hanzo start:prod",
"hanzo:build": "pnpm --filter=hanzo build",
"hanzo:test": "pnpm --filter=hanzo test",
"shadcn:dev": "turbo --filter=shadcn dev",
"shadcn": "pnpm --filter=shadcn start:dev",
"shadcn:prod": "pnpm --filter=shadcn start:prod",
"shadcn:build": "pnpm --filter=shadcn build",
"shadcn:test": "pnpm --filter=shadcn test",
"docs:build": "pnpm --filter=www build:docs",
"www:dev": "pnpm --filter=www dev",
"www:build": "pnpm --filter=www build",
"v4:dev": "pnpm --filter=v4 dev",
"v4:build": "pnpm --filter=v4 build",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"preview": "turbo run preview",
"typecheck": "turbo run typecheck",
"format:write": "turbo run format:write",
"format:check": "turbo run format:check",
"sync:templates": "./scripts/sync-templates.sh \"templates/*\"",
"check": "bash scripts/check-no-brand-pkg.sh && turbo lint typecheck format:check",
"pub:beta": "cd pkgs/hanzo && pnpm pub:beta",
"pub:release": "cd pkgs/hanzo && pnpm pub:release",
"test:dev": "turbo run test --filter=!hanzo-ui --force",
"test": "start-server-and-test v4:dev http://localhost:4000 test:dev",
"validate:registries": "pnpm --filter=v4 validate:registries",
"test:apps": "pnpm --filter=v4 test:apps",
"health-check": "tsx tests/component-health-check.ts",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:visual": "playwright test tests/visual/",
"crawl": "tsx scrapers/example-usage.ts",
"crawl:hanzo": "tsx scrapers/example-usage.ts hanzo",
"crawl:mui": "tsx scrapers/example-usage.ts mui",
"crawl:antd": "tsx scrapers/example-usage.ts antd",
"crawl:test": "playwright test scrapers/playwright-crawler.test.ts"
},
"packageManager": "[email protected]",
"dependencies": {
"@babel/core": "^7.29.7",
"@commitlint/cli": "^21.0.2",
"@commitlint/config-conventional": "^21.0.2",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@manypkg/cli": "^0.25.1",
"@tanstack/react-table": "^8.21.3",
"@typescript-eslint/parser": "^8.60.1",
"autoprefixer": "^10.5.0",
"chrono-node": "^2.9.1",
"eslint": "^10.4.1",
"eslint-config-next": "16.2.7",
"eslint-config-prettier": "^10.1.8",
"eslint-config-turbo": "^2.9.16",
"eslint-plugin-react": "^7.37.5",
"little-date": "^1.2.1",
"motion": "^12.40.0",
"postcss": "^8.5.15",
"puppeteer": "^25.1.0",
"recharts": "^3.8.1",
"tailwindcss-animate": "^1.0.7",
"tsx": "^4.22.4",
"vite-tsconfig-paths": "^6.1.1"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
"@playwright/test": "^1.60.0",
"@tailwindcss/oxide": "^4.3.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/hast": "^3.0.4",
"@types/node": "^25.9.1",
"@types/react": "19.2.16",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"@vitest/coverage-v8": "4.1.8",
"@vitest/ui": "^4.1.8",
"chalk": "^5.6.2",
"concurrently": "^10.0.3",
"cross-env": "^10.1.0",
"eslint-plugin-tailwindcss": "3.18.3",
"happy-dom": "^20.9.0",
"jest-axe": "^10.0.0",
"jsdom": "^29.1.1",
"lucide-react": "^1.17.0",
"playwright": "^1.60.0",
"prettier": "^3.8.3",
"pretty-quick": "^4.2.2",
"react": "19.2.7",
"react-dom": "19.2.7",
"start-server-and-test": "^3.0.6",
"tailwindcss": "4.3.0",
"tsup": "^8.5.1",
"turbo": "^2.9.16",
"typescript": "^5.9.3",
"vite": "^8.0.16",
"vitest": "^4.1.8",
"vitest-axe": "^0.1.0"
},
"pnpm": {
"overrides": {
"got@<11.8.5": ">=11.8.5",
"axios@>=0.8.1 <0.28.0": ">=0.28.0",
"next@>=14.0.0 <14.2.21": ">=14.2.21",
"undici@>=6.0.0 <6.21.1": ">=6.21.1",
"esbuild@<=0.24.2": ">=0.25.0",
"axios@<0.30.0": ">=0.30.0",
"undici@>=6.0.0 <6.21.2": ">=6.21.2",
"cross-spawn@<6.0.6": ">=6.0.6",
"next@>=13.0 <14.2.30": ">=14.2.30",
"prismjs@<1.30.0": ">=1.30.0",
"next@>=0.9.9 <14.2.31": ">=14.2.31",
"next@>=0.9.9 <14.2.32": ">=14.2.32",
"axios@<0.30.2": ">=0.30.2",
"next@>=0.9.9 <14.2.24": ">=14.2.24",
"happy-dom@<20.0.0": ">=20.0.0",
"next@>=14.0.0 <14.2.25": ">=14.2.25",
"happy-dom@<20.0.2": ">=20.0.2",
"vite@>=5.2.6 <=5.4.20": ">=5.4.21",
"vite@>=7.1.0 <=7.1.10": ">=7.1.11",
"validator@<13.15.20": ">=13.15.20",
"tar@=7.5.1": ">=7.5.2",
"zod@>4": "4.3.6",
"@hookform/resolvers": "3.10.0",
"react": "19.2.4",
"react-dom": "19.2.4",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"typescript-eslint": "8.57.2"
},
"public-hoist-pattern": [
"zod",
"@hookform/resolvers"
]
},
"optionalDependencies": {
"react-resizable-panels": "^4.11.2"
}
}