-
Notifications
You must be signed in to change notification settings - Fork 650
chore: integrated vue-tsgo #1299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "recommendations": ["dbaeumer.vscode-eslint", "lokalise.i18n-ally", "esbenp.prettier-vscode"] | ||
| "recommendations": ["dbaeumer.vscode-eslint", "lokalise.i18n-ally", "esbenp.prettier-vscode", "TypeScriptTeam.native-preview"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,22 +23,24 @@ | |
| "src/renderer/settings/**/*.vue" | ||
| ], | ||
| "compilerOptions": { | ||
| "composite": true, | ||
| "baseUrl": ".", | ||
| "module": "esnext", | ||
| "composite": false, | ||
| "declaration": false, | ||
| "emitDeclarationOnly": false, | ||
| "noEmit": true, | ||
|
Comment on lines
+27
to
+30
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Check for project references in tsconfig files
find . -name "tsconfig*.json" -type f | head -20Repository: ThinkInAIXYZ/deepchat Length of output: 146 🏁 Script executed: # Search for "references" in tsconfig files
rg -n "\"references\"" --type json
# Search for tsconfig.app.json references in build-related files
rg -n "tsconfig\.app\.json" --type json --type json5
# Check package.json for build scripts using tsc or related tools
rg -n "tsc|vue-tsc|tsgo" package.jsonRepository: ThinkInAIXYZ/deepchat Length of output: 387 🏁 Script executed: # Read the tsconfig.app.json file to see full config including extends
cat -n tsconfig.app.jsonRepository: ThinkInAIXYZ/deepchat Length of output: 1544 🏁 Script executed: # Read tsconfig.json to see the references array
sed -n '1,20p' tsconfig.jsonRepository: ThinkInAIXYZ/deepchat Length of output: 324 🏁 Script executed: # Look for any other references to tsconfig.app.json in the codebase
rg -n "tsconfig\.app\.json" --type json --type ts --type jsRepository: ThinkInAIXYZ/deepchat Length of output: 116 Remove This config is in the root 🤖 Prompt for AI Agents |
||
| "paths": { | ||
| "@/*": [ | ||
| "src/renderer/src/*" | ||
| "./src/renderer/src/*" | ||
| ], | ||
| "@shell/*": [ | ||
| "src/renderer/shell/*" | ||
| "./src/renderer/shell/*" | ||
| ], | ||
| "@shared/*": [ | ||
| "src/shared/*" | ||
| "./src/shared/*" | ||
| ], | ||
| "@shadcn/*": [ | ||
| "src/shadcn/*" | ||
| "./src/shadcn/*" | ||
| ] | ||
|
Comment on lines
31
to
43
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Find all tsconfig files in the repo
find . -name 'tsconfig*.json' -type f | head -20Repository: ThinkInAIXYZ/deepchat Length of output: 146 🏁 Script executed: # Check the content of tsconfig.app.json to see extends and baseUrl
cat -n tsconfig.app.json 2>/dev/null || echo "File not found at root"Repository: ThinkInAIXYZ/deepchat Length of output: 1544 🏁 Script executed: # Check in common directories
fd 'tsconfig.*\.json$' | xargs -I {} sh -c 'echo "=== {} ===" && head -20 {}'Repository: ThinkInAIXYZ/deepchat Length of output: 2168 🏁 Script executed: # Check if node_modules has the package
find . -path "*/node_modules/@electron-toolkit/tsconfig/tsconfig.web.json" 2>/dev/null | head -5Repository: ThinkInAIXYZ/deepchat Length of output: 47 🏁 Script executed: # Check package.json for the electron-toolkit version
cat package.json | grep -A 5 -B 5 "@electron-toolkit" || echo "Not found in package.json"Repository: ThinkInAIXYZ/deepchat Length of output: 908 🏁 Script executed: # Search for any documentation or README about baseUrl usage
rg "baseUrl" --type json | head -20Repository: ThinkInAIXYZ/deepchat Length of output: 1891 🏁 Script executed: # Let me check if there's documentation or if we can find the external package online
# First, check if tsconfig validation would fail
npm ls `@electron-toolkit/tsconfig` 2>&1 | head -20Repository: ThinkInAIXYZ/deepchat Length of output: 118 🏁 Script executed: # Check the Prettier formatting of tsconfig.app.json
cat tsconfig.app.json | python3 -m json.tool > /dev/null 2>&1 && echo "Valid JSON"Repository: ThinkInAIXYZ/deepchat Length of output: 75 🌐 Web query:
💡 Result:
So if you want {
"extends": "@electron-toolkit/tsconfig/tsconfig.web.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/renderer/src/*"]
}
}
}TypeScript resolves Citations: 🏁 Script executed: # Check if tsconfig.app.json conforms to Prettier formatting
cat tsconfig.app.json | python3 << 'EOF'
import json
import sys
with open('tsconfig.app.json', 'r') as f:
config = json.load(f)
# Output with Prettier-like formatting (2 spaces)
formatted = json.dumps(config, indent=2)
print(formatted)
EOFRepository: ThinkInAIXYZ/deepchat Length of output: 1222 🏁 Script executed: # Verify the file is being used as the renderer tsconfig (check vite config or build setup)
rg "tsconfig.app" --type js --type ts | head -10Repository: ThinkInAIXYZ/deepchat Length of output: 47 Add The extended config Required fix "compilerOptions": {
+ "baseUrl": ".",
"module": "esnext",🤖 Prompt for AI Agents |
||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
| "extends": "@electron-toolkit/tsconfig/tsconfig.web.json", | ||
| "include": [ | ||
| "src/renderer/src/env.d.ts", | ||
| "src/renderer/src/**/*", | ||
| "src/renderer/src/**/*.vue", | ||
| "src/renderer/src/assets/**/*", | ||
| "src/renderer/shell/env.d.ts", | ||
| "src/renderer/shell/**/*", | ||
| "src/renderer/shell/**/*.vue", | ||
| "src/renderer/shell/assets/**/*", | ||
| "src/renderer/floating/env.d.ts", | ||
| "src/renderer/floating/**/*", | ||
| "src/renderer/floating/**/*.vue", | ||
| "src/renderer/floating/assets/**/*", | ||
| "src/renderer/splash/**/*", | ||
| "src/renderer/splash/**/*.vue", | ||
| "src/renderer/splash/assets/**/*", | ||
| "src/preload/*.d.ts", | ||
| "src/shared/**/*", | ||
| "src/shadcn/**/*", | ||
| "src/renderer/settings/**/*", | ||
| "src/renderer/settings/**/*.vue" | ||
| ], | ||
| "compilerOptions": { | ||
| "module": "esnext", | ||
| "composite": false, | ||
| "declaration": false, | ||
| "emitDeclarationOnly": false, | ||
| "noEmit": true, | ||
| "paths": { | ||
| "@/*": [ | ||
| "./src/renderer/src/*" | ||
| ], | ||
| "@shell/*": [ | ||
| "./src/renderer/shell/*" | ||
| ], | ||
| "@shared/*": [ | ||
| "./src/shared/*" | ||
| ], | ||
| "@shadcn/*": [ | ||
| "./src/shadcn/*" | ||
| ] | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
vue-tsgo npm package version 0.0.1-yggdrasill.11 TypeScript compatibility💡 Result:
I couldn’t find any publicly indexed npm package/version matching
vue-tsgo@0.0.1-yggdrasill.11(no npm/unpkg results for that exact name+version), so I can’t verify its TypeScript compatibility from authoritative metadata (e.g.,peerDependencies).To determine compatibility, check the published manifest directly from your environment:
If it’s actually
vue-tsc(the common Vue typecheck CLI), current releases declarepeerDependencies.typescriptas>=5.0.0. (app.unpkg.com)Citations:
🌐 Web query:
vue-tsgo latest version TypeScript 5.8 compatibility💡 Result:
vue-tsc(part ofvuejs/language-tools). [4]vue-tsc: v3.2.4 (released 2026-01-26). [1] (Also reflected by Snyk as “latest version 3.2.4”.) [2]vue-tscdeclares a peer dependency oftypescript >= 5.0.0, so TypeScript 5.8.x is compatible. [3]vue-tsc—tsgois a separate executable provided by@typescript/native-previewand Vue tooling currently targets the normaltypescript(tsc/tsserver) ecosystem rather thantsgo. [5]Sources: [1] [2] [3] [4] [5]
🏁 Script executed:
cat package.json | head -50Repository: ThinkInAIXYZ/deepchat
Length of output: 3835
🏁 Script executed:
rg "vue-tsgo|vue-tsc" --type jsonRepository: ThinkInAIXYZ/deepchat
Length of output: 195
🏁 Script executed:
Repository: ThinkInAIXYZ/deepchat
Length of output: 97
🏁 Script executed:
Repository: ThinkInAIXYZ/deepchat
Length of output: 129
🏁 Script executed:
Repository: ThinkInAIXYZ/deepchat
Length of output: 47
🏁 Script executed:
Repository: ThinkInAIXYZ/deepchat
Length of output: 153
🏁 Script executed:
Repository: ThinkInAIXYZ/deepchat
Length of output: 1222
🏁 Script executed:
Repository: ThinkInAIXYZ/deepchat
Length of output: 178
🏁 Script executed:
rg "typecheck:web" -A 2 -B 2Repository: ThinkInAIXYZ/deepchat
Length of output: 1512
Remove or replace "vue-tsgo"—this package does not exist in any public registry.
The package
vue-tsgo@0.0.1-yggdrasill.11is not found on npm or any public package registry. This will fail duringpnpm installand break thepnpm run typecheck:webscript.Replace it with the official Vue type-checker
vue-tsc(latest v3.2.4, compatible with TypeScript ≥5.0.0), or if using TypeScript's native preview tooltsgodirectly, add@typescript/native-previewinstead.🤖 Prompt for AI Agents