From 58e02240612e0a0eddc1427a795f5003ee2b3d07 Mon Sep 17 00:00:00 2001 From: Taylor Mullen Date: Fri, 16 May 2025 22:41:57 -0700 Subject: Refactor: Use String.prototype.replaceAll() and update TS lib - Replaces the custom `replaceAll` implementation in `packages/server/src/tools/edit.ts` with the standard `String.prototype.replaceAll()`. - Updates `packages/server/tsconfig.json` to include `ES2021` in the `lib` compiler options to ensure TypeScript recognizes this method. This aligns with the project's Node.js version requirements \(Node.js 16.x+\). Fixes https://github.com/google-gemini/gemini-cli/issues/7 --- packages/server/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/server/tsconfig.json') diff --git a/packages/server/tsconfig.json b/packages/server/tsconfig.json index cd6b8a33..eda58ff3 100644 --- a/packages/server/tsconfig.json +++ b/packages/server/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "dist", - "lib": ["DOM", "DOM.Iterable", "ES2020"], + "lib": ["DOM", "DOM.Iterable", "ES2021"], "composite": true }, "include": ["index.ts", "src/**/*.ts", "src/**/*.json"], -- cgit v1.2.3