From 3e53847715330dfdbb035f4031b5b217671169aa Mon Sep 17 00:00:00 2001 From: nang-dev Date: Thu, 10 Apr 2025 17:56:43 -0400 Subject: [PATCH] Added build passing --- src/api/index.ts | 2 +- webview-ui/tsconfig.json | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index b5777439843..a787c32b5e8 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,5 +1,5 @@ import { Anthropic } from "@anthropic-ai/sdk" -import { BetaThinkingConfigParam } from "@anthropic-ai/sdk/resources/beta/messages/index.mjs" +import { BetaThinkingConfigParam } from "@anthropic-ai/sdk/resources/beta/messages" import { ApiConfiguration, ModelInfo, ApiHandlerOptions } from "../shared/api" import { ANTHROPIC_DEFAULT_MAX_TOKENS } from "./providers/constants" diff --git a/webview-ui/tsconfig.json b/webview-ui/tsconfig.json index c725fcff3e3..ea400897fed 100644 --- a/webview-ui/tsconfig.json +++ b/webview-ui/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "es2022", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, @@ -17,8 +17,12 @@ "jsx": "react-jsx", "baseUrl": ".", "paths": { - "@/*": ["./src/*"] - } + "@/*": ["./src/*"], + "js-tiktoken/ranks/o200k_base": ["../node_modules/js-tiktoken/dist/ranks/o200k_base"] + }, + "useUnknownInCatchVariables": false, + "downlevelIteration": true }, - "include": ["src", "../src/shared"] + "include": ["src", "../src/shared"], + "exclude": ["node_modules"] }