Skip to content

Commit feee16d

Browse files
OvalvoiYuval
andauthored
chore(ci): ignore TypeScript major bumps in Dependabot (#77)
TypeScript 7 (the native port) removes the legacy JS API surface that @capacitor/cli depends on. requireTS() reads ts.ModuleKind.CommonJS and ts.ModuleResolutionKind.NodeJs to parse capacitor.config.ts, but on typescript@7.0.2 ModuleKind, ModuleResolutionKind, ScriptTarget and transpileModule are all undefined. The result is `npx cap sync android` failing with "Cannot read properties of undefined (reading CommonJS)", which turned the Android CodeQL job red on the TypeScript 7 bump (PR #76). No released @capacitor/cli fixes this (latest is 8.4.2, already in use), so ignore major TypeScript updates until Capacitor supports TS 7. Co-authored-by: Yuval <Yuval@YUBEN-2025>
1 parent eec1a13 commit feee16d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ updates:
3030
update-types:
3131
- "minor"
3232
- "patch"
33+
ignore:
34+
# TypeScript 7 (the native port) drops the legacy JS API surface:
35+
# ts.ModuleKind, ts.ModuleResolutionKind, ts.ScriptTarget and
36+
# ts.transpileModule are all undefined. @capacitor/cli reads
37+
# ts.ModuleKind.CommonJS to parse capacitor.config.ts, so `cap sync`
38+
# dies with "Cannot read properties of undefined (reading 'CommonJS')"
39+
# and the Android CodeQL job fails (see PR #76).
40+
# No released @capacitor/cli fixes this yet (latest is 8.4.2).
41+
# Remove this ignore once Capacitor supports TypeScript 7.
42+
- dependency-name: "typescript"
43+
update-types:
44+
- "version-update:semver-major"
3345

3446
# Backend (ASP.NET Core 8 + ADO.NET)
3547
- package-ecosystem: "nuget"

0 commit comments

Comments
 (0)