Skip to content

fix(ci): stabilize afi-factory TypeScript build - #4

Merged
Gio2050 merged 1 commit into
mainfrom
fix/ci-ts6-node10-deprecation
Jul 2, 2026
Merged

fix(ci): stabilize afi-factory TypeScript build#4
Gio2050 merged 1 commit into
mainfrom
fix/ci-ts6-node10-deprecation

Conversation

@Gio2050

@Gio2050 Gio2050 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Stabilizes the afi-factory TypeScript build by pinning a supported TypeScript version and silencing the TS6/Node10 deprecation warning that breaks CI.

Changes

  • tsconfig.json: Add "ignoreDeprecations": "6.0" to compilerOptions to acknowledge the moduleResolution: "node" (node10) deprecation and allow the build to proceed under TypeScript 6.x.
  • package.json: Add typescript: "~6.0.3" as a devDependency to pin the compiler used by CI.
  • package-lock.json: Regenerated to lock typescript@6.0.3.

Verification

All of the following pass locally:

npm ci          # ok
npm run build   # tsc, ok
npm test        # placeholder, exit 0
npm run typecheck  # tsc --noEmit, ok

The committed dist/ artifacts are unchanged after rebuild (git diff -- dist/ is empty); only package.json, package-lock.json, and tsconfig.json are modified.

Open in Web Open in Cursor 

- Add ignoreDeprecations "6.0" to tsconfig compilerOptions
- Pin typescript ~6.0.3 as devDependency and regenerate package-lock.json

Verified: npm ci && npm run build && npm test && npm run typecheck all pass;
committed dist/ is unchanged after rebuild.

Co-authored-by: Giovanni <founder@afiprotocol.org>
@Gio2050
Gio2050 marked this pull request as ready for review July 2, 2026 05:23
@Gio2050
Gio2050 merged commit 59330cc into main Jul 2, 2026
1 of 2 checks passed
@Gio2050
Gio2050 deleted the fix/ci-ts6-node10-deprecation branch July 2, 2026 05:31
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.

2 participants