Files
gpuix/package.json
Tommy D. Rossi 7f16f8e1ad Switch examples to render() and bun --hot
Replace the per-example createRenderer / init / createRoot /
startFrameLoop bootstrap with one render() call. chat and diff still
guard on the entry point so tests can import the app component.

Example scripts now run under bun --hot:

- examples/package.json: counter, diff, native-text, chat
- root package.json example:counter

A save remounts React on the same window. useState resets. Do not add
createRenderer() back to these files; a second init() would open
another host.

Session: ses_fd273542bffefho3Ygye0w4LIi
2026-08-23 10:44:48 +02:00

24 lines
548 B
JSON

{
"name": "gpuix",
"private": true,
"workspaces": [
"packages/*",
"examples"
],
"scripts": {
"build": "bun run build:native && bun run build:react",
"build:native": "cd packages/native && bun run build",
"build:react": "cd packages/react && bun run build",
"example:counter": "cd examples && bun --hot counter.tsx",
"dev": "bun scripts/dev.ts"
},
"devDependencies": {
"tsx": "^4.19.0",
"typescript": "^5.3.0"
},
"dependencies": {
"react": "^19.2.4",
"react-reconciler": "^0.33.0"
}
}