Skip to content

chore(suite-desktop-core): bump @electron/fuses#20722

Merged
Lemonexe merged 2 commits intodevelopfrom
chore/bump-fuses
Aug 13, 2025
Merged

chore(suite-desktop-core): bump @electron/fuses#20722
Lemonexe merged 2 commits intodevelopfrom
chore/bump-fuses

Conversation

@Lemonexe
Copy link
Copy Markdown
Contributor

@Lemonexe Lemonexe commented Aug 13, 2025

Description

  • bump @electron/fuses
    • the electron builder hooks were already being built as ESM
    • this library changed from dual CJS/ESM to ESM only, which sounds like no-op for us
    • but their file structure is weird, needed to fix module resolution
    • and at the same time keep type-check working
  • unrelated incidental work: change a bash one-liner to cjs script (fix native windows dev env)

I tested linux build & native windows build.

Related Issue

Followup to #20107

🔍🖥️ Suite desktop test results: View in Currents

🔍🖥️ Suite web test results: View in Currents

@Lemonexe Lemonexe added the dependencies Pull requests that update a dependency file label Aug 13, 2025
"main": "src/app.ts",
"scripts": {
"build:scripts": "yarn g:rimraf ./lib && yarn g:tsc --build tsconfig.scripts.json && find ./lib -name '*.js' -exec bash -c 'mv \"$0\" \"${0%.js}.mjs\"' {} \\;",
"build:scripts": "yarn g:rimraf ./lib && yarn g:tsc --build scripts/tsconfig.json && node scripts/rename-js-to-mjs.cjs",
Copy link
Copy Markdown
Contributor Author

@Lemonexe Lemonexe Aug 13, 2025

Choose a reason for hiding this comment

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

We have many simple bash scripts in-lined in package.json, that's why "git bash for windows" is the only supported shell for native windows dev env.
But find binary is not available in git bash for windows, so this was not working (files were not renamed, and then not found, and build crashed)

"build:scripts": "yarn g:rimraf ./lib && yarn g:tsc --build scripts/tsconfig.json && node scripts/rename-js-to-mjs.cjs",
"build:core": "yarn g:rimraf dist && TS_NODE_PROJECT=\"tsconfig.json\" yarn webpack --config ./webpack/core.webpack.config.ts",
"type-check": "yarn g:tsc --build tsconfig.json",
"type-check": "yarn g:tsc --build tsconfig.json && yarn g:tsc --build scripts/tsconfig.json",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Before this PR, the scripts folder was targeted by both tsconfig.scripts.json (for building) and tsconfig.json (for type-checking).
This is not possible now because of the different "module" and "moduleResolution", so everything related to scripts must be handled by their own tsconfig.

@Lemonexe Lemonexe added the no-project This label is used to specify that PR doesn't need to be added to a project label Aug 13, 2025
@Lemonexe Lemonexe marked this pull request as ready for review August 13, 2025 08:56
@Lemonexe Lemonexe merged commit 6d88d62 into develop Aug 13, 2025
80 of 82 checks passed
@Lemonexe Lemonexe deleted the chore/bump-fuses branch August 13, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file no-project This label is used to specify that PR doesn't need to be added to a project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants