Skip to content

Commit b66b0c9

Browse files
committed
fix: trim imported exec directory
1 parent 831b63c commit b66b0c9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

desktop/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"version": "0.1.0",
55
"type": "module",
66
"scripts": {
7-
"start-desktop": "tauri",
7+
"dev": "vite",
8+
"start-desktop": "tauri dev",
89
"build-desktop": "tsc && vite build",
910
"lint-ts": "npx eslint src",
1011
"lint-ts:fix": "npx eslint src --fix",

internal/fileparser/fileparser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func ExecutablesFromImports(
8787

8888
func shortenWsPath(wsPath string, path string) string {
8989
if strings.HasPrefix(path, wsPath) {
90-
return "//" + path[len(wsPath):]
90+
return "//" + path[len(wsPath)+1:]
9191
}
9292

9393
return path

0 commit comments

Comments
 (0)