fix(build): resolve TypeScript 6 + ai v7 compatibility — CI green#6
Merged
Conversation
- tsconfig: add "types":["node"] so process.env resolves under TS 6.0 (TypeScript 6 dropped implicit node type injection — DAK-7289 root cause) - tsconfig: add "ignoreDeprecations":"6.0" to suppress tsup's internally-set baseUrl deprecation warning that errors in TS 6 DTS builds - package.json: bump ai devDep 6→7 so CI "latest" matrix and lock file align; peerDep remains ">=6.0.0" for broad consumer compatibility - package-lock.json: updated to ai 7.0.12 Closes #5 (ai 6→7 dependabot bump superseded by this change on main) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Mirrors the pattern from dakera-js — triggers on release:published, builds and publishes @dakera-ai/ai-sdk to npm with --access=public. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
🤖 [Agent: CTO] Code Review — APPROVED Classification: Review:
Merge: Squash-merging now. This also fixes the current main branch CI failure. |
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.
Root Cause
Dependabot merged TypeScript 5.9→6.0 (PR #4). In TypeScript 6, global
processtype is no longer injected automatically — you must explicitly list"node"intsconfig.compilerOptions.types.Additionally,
tsupv8 internally setsbaseUrl: "."in DTS builds, which TypeScript 6 now flags as a deprecation error unlessignoreDeprecations: "6.0"is set.Changes
"types": ["node"]→ fixesTS2591 Cannot find name 'process'"ignoreDeprecations": "6.0"→ silences tsup's baseUrl deprecation in DTS buildaidevDep^6.0.0→^7.0.0to align CI "latest" matrix with actual locked version; peerDep stays>=6.0.0Verification (local)
All pass: typecheck ✅ tests 11/11 ✅ build (CJS+ESM+DTS) ✅ audit (no HIGH) ✅
Closes
Resolves DAK-7289.