This repository was archived by the owner on Sep 5, 2026. It is now read-only.
Repository navigation
ci: build the settings page on every change, and unbreak pnpm 11 - #1
Merged
Merged
Conversation
This repository had no CI and no dependabot, while the settings page under webview2/settings/ime-settings is a Vite and TypeScript project that the Windows release workflow builds. Until now pnpm build only ever ran while cutting a release, so a break here surfaced at the worst possible moment. pnpm-workspace.yaml declared only onlyBuiltDependencies. pnpm 10 honours that key, which is why releases worked, but pnpm 11 reads allowBuilds instead: it refuses to run esbuild's postinstall, exits 1, and rewrites the file with a "set this to true or false" placeholder. So pnpm install --frozen-lockfile fails outright for anyone on a current pnpm. Declaring allowBuilds alongside the existing key satisfies both, verified against 10.34.5 and 11.25.0. packageManager pins the pnpm version so a local checkout and CI agree through corepack. dependabot now covers npm as well as actions. The template used across the other repositories only declares github-actions and gitsubmodule, so the settings page dependencies were unwatched: they sit one to two majors behind, with typescript at 5.9 against 7.0 and vite at 7.2 against 8.2. Those bumps are left to dependabot rather than done here. The README described only the symlink debug trick, through one developer's absolute paths, and never mentioned that the settings page has to be built at all.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This repository had no CI and no dependabot, while the settings page under
webview2/settings/ime-settingsis a Vite and TypeScript project the Windows release workflow builds.pnpm buildonly ever ran while cutting a release, so a break here surfaced at the worst possible moment.pnpm 11 cannot install this project
Found while testing the CI before pushing it.
pnpm-workspace.yamldeclares only:pnpm 10 honours that key, which is why releases have worked. pnpm 11 reads
allowBuildsinstead, so it refuses to run esbuild'spostinstall, exits 1, and rewrites the file with aset this to true or falseplaceholder:Declaring
allowBuildsalongside the existing key satisfies both. Verified on both versions from a cleannode_modules:install --frozen-lockfilebuilddist/index.html+ assetsdist/index.html+ assetspackageManager: pnpm@10.34.5pins the version so a local checkout and CI agree through corepack. The workflow keeps an explicitversion: 10rather than relying onpnpm/action-setupfinding that field, since it is not in the repository rootpackage.json.Dependencies were unwatched
The dependabot template used across the other repositories declares only
github-actionsandgitsubmodule, so no repository in the org watches its language dependencies. This one now covers npm too. Current state, left to dependabot rather than bumped here:~5.9.3^7.2.2^24.10.1^0.1.29CI
Builds the settings page on push and pull request with the same command the release uses, then checks
dist/index.htmlexists. Ubuntu, about a minute.README
It was 649 bytes: a symlink debug trick written through one developer's absolute paths (
C:\Users\sonnycalcr\EDisk\CppCodes\IMECodes\...), and no mention that the settings page has to be built at all. Rewritten to cover the directory layout, the build, a path-independent symlink command, and the message-passing boundary with the Server that has no compile-time enforcement.