Skip to content
This repository was archived by the owner on Sep 5, 2026. It is now read-only.

ci: build the settings page on every change, and unbreak pnpm 11 - #1

Merged
houko merged 1 commit into
mainfrom
ci/build-and-dependabot
Sep 5, 2026
Merged

houko merged 1 commit into
mainfrom
ci/build-and-dependabot

Conversation

@houko

@houko houko commented Sep 5, 2026

Copy link
Copy Markdown
Member

This repository had no CI and no dependabot, while the settings page under webview2/settings/ime-settings is a Vite and TypeScript project the Windows release workflow builds. pnpm build only 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.yaml declares only:

onlyBuiltDependencies:
  - esbuild

pnpm 10 honours that key, which is why releases have worked. pnpm 11 reads allowBuilds instead, so it refuses to run esbuild's postinstall, exits 1, and rewrites the file with a set this to true or false placeholder:

[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: esbuild@0.25.12
install exit=1

Declaring allowBuilds alongside the existing key satisfies both. Verified on both versions from a clean node_modules:

pnpm install --frozen-lockfile build
10.34.5 0 0, dist/index.html + assets
11.25.0 0 0, dist/index.html + assets

packageManager: pnpm@10.34.5 pins the version so a local checkout and CI agree through corepack. The workflow keeps an explicit version: 10 rather than relying on pnpm/action-setup finding that field, since it is not in the repository root package.json.

Dependencies were unwatched

The dependabot template used across the other repositories declares only github-actions and gitsubmodule, 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:

Package Declared Latest
typescript ~5.9.3 7.0.2
vite ^7.2.2 8.2.2
@types/node ^24.10.1 26.4.1
@types/chrome ^0.1.29 0.2.8

CI

Builds the settings page on push and pull request with the same command the release uses, then checks dist/index.html exists. 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.

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.
@houko
houko merged commit 8a9023b into main Sep 5, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant