Merge pull request #34344 from overleaf/copilot/convert-fetch-utils-to-es-modules

Convert @overleaf/fetch-utils to TypeScript ESM with Vitest, enable noImplicitAny, fix downstream regressions, and align buildscript generation

GitOrigin-RevId: e060152f056cbae31da0650fb22471525835bd5e
This commit is contained in:
Andrew Rumble
2026-09-17 11:24:05 +00:00
committed by Copybot
parent 152004a600
commit 05423f1a1d
11 changed files with 193 additions and 183 deletions
+10 -6
View File
@@ -2,13 +2,19 @@
"name": "@overleaf/fetch-utils",
"version": "0.1.0",
"description": "utilities for node-fetch",
"main": "index.js",
"main": "index.ts",
"exports": {
"import": "./index.ts",
"require": "./index.ts",
"default": "./index.ts"
},
"type": "module",
"scripts": {
"test": "yarn run lint && yarn run types:check && yarn run test:unit",
"lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 .",
"lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .",
"test:ci": "yarn run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"test:unit": "vitest --config vitest.config.ts",
"types:check": "tsc --noEmit"
},
"author": "Overleaf (https://www.overleaf.com)",
@@ -18,11 +24,9 @@
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"express": "4.22.1",
"mocha": "^11.1.0",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi-reporters": "^1.5.1",
"selfsigned": "^5.5.0",
"typescript": "^5.0.4"
"typescript": "^5.0.4",
"vitest": "4.1.5"
},
"dependencies": {
"@overleaf/o-error": "workspace:*",