chore: typescript 7 - #5380
Merged
Merged
Conversation
brunozoric
force-pushed
the
bruno/chore/typescript-7
branch
from
July 9, 2026 09:32
9570e00 to
a4fa7f9
Compare
Contributor
Author
|
/e2e |
|
Cypress E2E tests have been initiated (for more information, click here). ✨
|
brunozoric
force-pushed
the
bruno/chore/typescript-7
branch
from
July 9, 2026 12:31
fedb70b to
2d60e0b
Compare
TypeScript 7 removed the entire programmatic compiler API (ts.sys, ts.readConfigFile, ts.createProgram, program.emit). Replaced with native tsc binary invocation via execFileSync. - Split tsCompile.js into focused modules under typescript/ subfolder - Remove 5 deprecated compiler options from root tsconfig.build.json - Fix duplicate computed property key in wcp/types.ts (AL/AUDIT_LOGS) - Exclude bundled Yarn CJS binary from create-webiny-project compilation - Wrap node-notifier sendNotification in try/catch for ARM64 compat Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
brunozoric
force-pushed
the
bruno/chore/typescript-7
branch
from
July 10, 2026 07:53
ca0c0b9 to
573f851
Compare
brunozoric
marked this pull request as ready for review
July 10, 2026 11:32
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Rewrites
build-tools/tsCompile.jsfor TypeScript 7 compatibility. TS 7 removed the entire programmatic compiler API (ts.sys,ts.readConfigFile,ts.createProgram,program.emit()), replacing it with anative binary + client-server architecture under
typescript/unstable/*.New approach shells out to the native
tscbinary viaexecFileSync, split into focused modules:typescript/getTscBinaryPath.js— resolves platform-specific native binary from@typescript/typescript-{platform}-{arch}typescript/readTsConfig.js— JSONC-aware config reader (comments + trailing commas)typescript/runTsc.js— binary executor with 10MB buffer, proper error propagationtypescript/writeTempTsConfig.js— temp config with random suffix for concurrent safetyAdditional fixes required by TS 7
tsconfig.build.json: removed 5 deprecated options (noImplicitUseStrict,noStrictGenericChecks,suppressImplicitAnyIndexErrors,suppressExcessPropertyErrors,keyofStringsOnly)@webiny/wcp: removed duplicate computed property key —PROJECT_PACKAGE_FEATURE_NAME.ALand.AUDIT_LOGSboth resolve to"auditLogs"create-webiny-project: excluded bundled Yarn CJS binary from TS compilation (module.exportsserialization error)buildPackages.ts: wrappednode-notifierin try/catch —terminal-notifierbinary crashes with EBADARCH on ARM64 macOSCross-platform & robustness
.exesuffix, long-path\\?\prefix for paths >= 248 chars--tsBuildInfoFilepinned to package root (prevents leak intodist/)resolve()instead ofjoin()foroutDir(handles absolute paths)tsconfig.build.tmp-*.json)Test plan
yarn build --no-cachepasses (138 packages, 17 batches, ~34s).tsbuildinfofiles in anydist/directorycreate-webiny-projectstill bundles Yarn binary correctly at runtime