fix: resolve TypeScript 6 build:lib failures in tsconfig.lib.json#1745
Merged
fix: resolve TypeScript 6 build:lib failures in tsconfig.lib.json#1745
Conversation
Contributor
Dependency Reviewβ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
β¦for TypeScript 6 Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/092d39d5-c2b2-4292-a11f-6a5a0ff256ce Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issues in tsconfig.lib.json for build
fix: resolve TypeScript 6 build:lib failures in tsconfig.lib.json
Mar 31, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes npm run build:lib failures under TypeScript 6 by aligning tsconfig.lib.json with TS6 requirements and the repoβs existing TS6 configuration.
Changes:
- Add explicit
rootDirto satisfy TS6 whenoutDir/declarationDirare set. - Add
ignoreDeprecations: "6.0"to silence TS6 deprecation warnings (consistent with other tsconfigs). - Add
types: ["node"]soprocess.env.NODE_ENVreferences typecheck during the library build.
Contributor
πΈ Automated UI Screenshotsπ Screenshots Captured (8)
π¦ Download Screenshotsπ₯ Download all screenshots from workflow artifacts
π€ Generated by Playwright automation |
Contributor
πΈ Automated UI Screenshotsπ Screenshots Captured (8)
π¦ Download Screenshotsπ₯ Download all screenshots from workflow artifacts
π€ Generated by Playwright automation |
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.
npm run build:libwas failing under TypeScript 6 due to three missing compiler options intsconfig.lib.json.Changes
"rootDir": "./src"β TS6 now requiresrootDirto be explicit whenoutDir/declarationDirare set (TS5011, triggered twice)"ignoreDeprecations": "6.0"β silences TS5101 forbaseUrl, consistent withtsconfig.jsonandcypress/tsconfig.json"types": ["node"]β without this,processis unresolved (TS2591) across 13 source files that useprocess.env.NODE_ENV