Skip to content

fix(build): add --ignoreConfig for TypeScript 7 to prevent TS5112 - #149

Merged
godronus merged 5 commits into
betafrom
fix/security-hardening
Sep 15, 2026
Merged

godronus merged 5 commits into
betafrom
fix/security-hardening

Conversation

@godronus

Copy link
Copy Markdown
Collaborator

TS 7 (Go rewrite) errors with TS5112 when a file is passed on the command line and a tsconfig.json is present in the CWD. [email protected] (bundled in 2.5.2-beta.1) brings TypeScript 7 in as a transitive dependency, so any consumer project with a tsconfig.json will hit this error without the flag.

Our defaultTscBuildFlags already controls all compiler options explicitly, so ignoring any ambient tsconfig is correct behaviour.

TS 7 (Go rewrite) errors with TS5112 when a file is passed on the
command line and a tsconfig.json is present in the CWD. [email protected]
(bundled in 2.5.2-beta.1) brings TypeScript 7 in as a transitive
dependency, so any consumer project with a tsconfig.json will hit
this error without the flag.

Our defaultTscBuildFlags already controls all compiler options
explicitly, so ignoring any ambient tsconfig is correct behaviour.
@godronus
godronus requested a lite review from Copilot September 15, 2026 16:22

This comment was marked as resolved.

…irect file arg

Covers the exact trigger the --ignoreConfig fix guards: a .ts input
passed directly on the CLI with a tsconfig.json present in the CWD.
The prior matrix omitted this combination, so the fix could have been
silently dropped without a test failure.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The regression test must pin TypeScript 7 to reliably exercise the TS5112 code path.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread integration-tests/fastedge-build.test.js Outdated
… test to version matrix

TS5112 (ambient tsconfig.json + CLI file arg) is triggered by TS 6.0.0-beta
as well as TS 7; the previous major >= 7 condition was too narrow.

The regression case is moved from fastedge-build.test.js (unpinned npm
install) into typescript-versions.test.js so it runs against every pinned
major in the matrix. The unpinned variant is removed.
@godronus
godronus merged commit 2fcc822 into beta Sep 15, 2026
8 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.5.2-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants