scripts/index.js is a generated artifact. When BP TypeScript sources change, use the addon's own build flow — don't edit scripts/index.js by hand. The Engine tries to recompile when it finds esbuild and the BP's build script; if it can't, it reports that in the operation result.
npm install
npm run dist
The installer will be created at:
dist/PocketMon Engine Setup 0.1.0.exe
For a new version, update version in package.json before building.
Open Engine
-> detect or select BP/RP
-> check Dashboard and Diagnostics
-> browse or edit
-> review the diff
-> close Minecraft
-> apply
-> test in-game
Full technical documentation: ARQUITETURA_POCKETMON.md.