Files
ui/package.json
zeekayandHanzo Dev d35f34fa02 build: fix the two red builds, and drop the second TypeScript compiler
Two builds were red before `turbo run build` reached a single app:

  @hanzo/commerce  index.ts re-exported CardTokenizeRequest/CardTokenizeResult
                   from ./client, which aeb55ee56 deleted along with tokenizeCard.
                   The PCI removal took the types; the barrel kept naming them.
  cd               vite.config.ts aliased @hanzo/cd to ../../pkgs/gitops, a path
                   the package left when it was renamed to pkgs/cd, and typed its
                   `test` block through vite's defineConfig, which has no such key.

Both green now, so all 21 build tasks pass.

Also removes @typescript/native-preview, which 7be984e49 added. It was the wrong
package: native-preview is pinned at 7.0.0-dev.20260707.2, while `typescript`
itself now ships the native Go compiler as stable at 7.0.2 — the platform
binaries are real Go ELF executables, e.g.

  @typescript/[email protected]/lib/tsc:
    ELF 64-bit LSB executable, ARM aarch64, statically linked, Go BuildID=...

So native-preview was a second, older copy of the compiler under a second binary
name. There is one compiler and it is called `tsc`; all 16 packages that 7be984e49
pointed at `tsgo` are back on `tsc`.

TypeScript 7 itself does NOT land here yet, and that is measured rather than
assumed. Forcing `pnpm.overrides.typescript=^7.0.2` across the estate takes the
build from 21/21 to 5/21. The cause is not the type system — TS 7.0.2 typechecks
all 16 tsc-driven packages clean, including pkg/ui, event and shop. It is emit:
tsup's rollup-plugin-dts crashes under TS7, and TS7 removed options these
configs still use (TS5108 moduleResolution=node10 in pkg/ui/tsconfig.cjs.json,
TS5011 implicit rootDir in agent-ui).

pkg/ui/tsconfig.cjs.json already documents this exact failure from a previous
attempt, down to the rollup-plugin-dts stack, and asks that TS7 wait for tsup.
This change respects that note instead of rediscovering it in prod: root
typescript stays ^5.9.3, matching the 17 packages that pin 5.x.

Verified: pnpm build → 21 successful, 21 total; pkg/ui 21 files, 212 tests pass.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-03 19:43:28 -07:00

174 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/*",
"pkg/*",
"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"
}
}