Skip to content

[tech] Update all builder components to their latest versions.#5176

Open
a5ehren wants to merge 1 commit intoHeroic-Games-Launcher:mainfrom
a5ehren:update_builders
Open

[tech] Update all builder components to their latest versions.#5176
a5ehren wants to merge 1 commit intoHeroic-Games-Launcher:mainfrom
a5ehren:update_builders

Conversation

@a5ehren
Copy link
Contributor

@a5ehren a5ehren commented Jan 14, 2026

  • Note: You must pnpm rm electron-builder; pnpm add -D electron-builder@latest to update that package, else the lockfile
    does not properly update all the Peers. It is not clear if this is
    an electron-builder bug or pnpm bug.

  • Note 2: You must pnpm rm electron-vite @vitejs/plugin-react-swc vite-plugin-svgr; pnpm add -D electron-vite; pnpm add -D @vitejs/plugin-react-swc vite-plugin-svgr to get an updated version
    of the vite compiler.

Afaict there are no breaking changes or massive updates in any of these packages, but its just another step on the road to React 19.


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@a5ehren

This comment was marked as resolved.

@CommandMC
Copy link
Member

Fwiw I'm not sure either of the dead-code checkers in this project actually work. Both are marked unsupported/deprecated.

ts-prune should work, we run that as part of the "Lint" workflow (and it seems to be failing here). Personally I don't use either one apart from that

@a5ehren
Copy link
Contributor Author

a5ehren commented Jan 15, 2026

Fwiw I'm not sure either of the dead-code checkers in this project actually work. Both are marked unsupported/deprecated.

ts-prune should work, we run that as part of the "Lint" workflow (and it seems to be failing here). Personally I don't use either one apart from that

OK, the problem here was me removing the ts-morph override, which put it back to an old version that can't read the code. I've bumped it to match our current TS version and it passes locally.

It looks like all of these checkers conceded the space to https://knip.dev/ so I'll see about getting a config for that in another PR.

@a5ehren a5ehren force-pushed the update_builders branch 2 times, most recently from 8df1dc0 to f4f0603 Compare January 15, 2026 17:42
@@ -1,4 +1,4 @@
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are from electron-vite deprecating this plugin and moving it to the main build options

},
"resolutions": {
"ts-morph": "17.0.1"
"ts-morph": "26.0.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be bumped to keep up with the TS package - without the override, ts-prune installs v13 of ts-morph, which does not really understand modern TS.

- '@parcel/watcher'
- '@swc/core'
- electron
- electron-winstaller
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are new pnpm-install scripts from the bumped dependencies. they don't really matter, but it gets rid of an annoying warning to allow them

@a5ehren a5ehren force-pushed the update_builders branch 2 times, most recently from 567b08d to 6f76717 Compare January 23, 2026 18:19
@flavioislima flavioislima force-pushed the main branch 2 times, most recently from ce6430e to d876444 Compare January 24, 2026 22:04
@a5ehren a5ehren force-pushed the update_builders branch 3 times, most recently from 42f92e2 to 300eb97 Compare January 28, 2026 17:28
@a5ehren
Copy link
Contributor Author

a5ehren commented Jan 28, 2026

Apologize for the gore on that last force-push, but apparently the JS ecosystem has suddenly decided to favor single-quotes. pnpm and prettier did the same thing when asked? Not sure exactly.

@a5ehren a5ehren force-pushed the update_builders branch 4 times, most recently from 12d3479 to 49b2130 Compare February 4, 2026 14:45
* Note: You must `pnpm rm electron-builder; pnpm add -D
  electron-builder@latest` to update that package, else the lockfile
  does not properly update all the Peers. It is not clear if this is
  an electron-builder bug or pnpm bug.

* Note 2: You must `pnpm rm electron-vite @vitejs/plugin-react-swc
  vite-plugin-svgr; pnpm add -D electron-vite; pnpm add -D
  @vitejs/plugin-react-swc vite-plugin-svgr` to get an updated version
  of the vite compiler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants