Skip to content

feat: fix CI build by pinning @types/babel__traverse for TypeScript 3.7.4 compatibility#39

Merged
hsluoyz merged 2 commits intomasterfrom
copilot/fix-ci-error
Feb 2, 2026
Merged

feat: fix CI build by pinning @types/babel__traverse for TypeScript 3.7.4 compatibility#39
hsluoyz merged 2 commits intomasterfrom
copilot/fix-ci-error

Conversation

Copy link
Contributor

Copilot AI commented Feb 2, 2026

fix: #38

CI builds were failing with 40+ TypeScript compilation errors in @types/babel__traverse. The --no-lockfile flag was installing v7.28.0, which uses TypeScript 4.1+ syntax (mapped type as clauses, template literal type constraints) incompatible with the project's TypeScript 3.7.4.

Changes

  • CI workflow: Replace --no-lockfile with --frozen-lockfile in all install steps
  • Dependencies: Pin @types/babel__traverse@7.0.8 and @types/babel__core@7.1.7
  • Resolutions: Force @types/babel__traverse@7.0.8 across all transitive dependencies to prevent nested incompatible versions
  • Gitignore: Add lib/ directory

Error Example

node_modules/@types/babel__traverse/index.d.ts:302:20 - error TS1005: ']' expected.
302         [N in Node as N["type"]]?: VisitNode<S, N extends { type: N["type"] } ? N : never>;
                       ~~

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@hsluoyz hsluoyz marked this pull request as ready for review February 2, 2026 17:25
…kfile

Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
@hsluoyz
Copy link
Member

hsluoyz commented Feb 2, 2026

@nodece @Shivansh-yadav13 please review

Copilot AI changed the title [WIP] Fix CI error during yarn install Fix CI build by pinning @types/babel__traverse for TypeScript 3.7.4 compatibility Feb 2, 2026
Copilot AI requested a review from hsluoyz February 2, 2026 17:35
@hsluoyz hsluoyz changed the title Fix CI build by pinning @types/babel__traverse for TypeScript 3.7.4 compatibility feat: fix CI build by pinning @types/babel__traverse for TypeScript 3.7.4 compatibility Feb 2, 2026
@hsluoyz hsluoyz merged commit 69c205f into master Feb 2, 2026
10 of 12 checks passed
hsluoyz added a commit that referenced this pull request Feb 2, 2026
github-actions bot pushed a commit that referenced this pull request Feb 2, 2026
# [1.2.0](v1.1.0...v1.2.0) (2026-02-02)

### Features

* fix bug that NPM released, but github not released ([#37](#37)) ([a5f78ed](a5f78ed))
* fix CI build by pinning @types/babel__traverse for TypeScript 3.7.4 compatibility ([#39](#39)) ([16afbd5](16afbd5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] fix CI error

3 participants