generate.ts: update instructions on how to run


Update instructions on how to run, and update package.json so that tsc
does not fail with weird errors on its types.

Task-number: QTBUG-141713
Change-Id: I8c3a0e06984781f18a911ae04ed0acbe40a1cb56
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
commit4a21732544c1efb66ddabb70bfe49d62d96121de
parent358c96f94a60177a69b807c82332e1acb0f12064
authorSami Shalayel <sami.shalayel@qt.io>
committerSami Shalayel <sami.shalayel@qt.io>
commit timeThu, 23 Apr 2026 15:31:37 +0000