Skip to content

Commit 94c7843

Browse files
committed
fix(deps): adapt to TypeScript 6.0 and sonarjs 4.x
- Drop deprecated `baseUrl` from package tsconfigs and rewrite path mappings as relative paths so typecheck stays clean under TS 6.0 (which now errors on `baseUrl`). - Rename the zsh prompt's `short_pwd` local to `short_path` so the updated sonarjs `no-hardcoded-passwords` rule no longer matches the `pwd=...` pattern in the embedded shell snippet.
1 parent f9e5a02 commit 94c7843

5 files changed

Lines changed: 11 additions & 14 deletions

File tree

packages/app/src/lib/core/templates-zsh.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ docker_git_prompt_apply() {
8484
docker_git_terminal_sanitize
8585
local b
8686
b="$(docker_git_branch)"
87-
local short_pwd
88-
short_pwd="$(docker_git_short_pwd)"
89-
local base="[%*] $short_pwd"
87+
local short_path
88+
short_path="$(docker_git_short_pwd)"
89+
local base="[%*] $short_path"
9090
if [[ -n "$b" ]]; then
9191
PROMPT="$base ($b)> "
9292
else

packages/app/tsconfig.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
"types": ["vitest", "vite/client"],
88
"lib": ["ES2023", "DOM", "DOM.Iterable"],
99
"jsx": "react-jsx",
10-
"baseUrl": ".",
1110
"paths": {
12-
"@/*": ["src/*"],
13-
"@lib": ["src/lib/index.ts"],
14-
"@lib/*": ["src/lib/*.ts"]
11+
"@/*": ["./src/*"],
12+
"@lib": ["./src/lib/index.ts"],
13+
"@lib/*": ["./src/lib/*.ts"]
1514
}
1615
},
1716
"include": [

packages/docker-git-session-sync/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"compilerOptions": {
44
"rootDir": ".",
55
"outDir": "dist",
6-
"types": ["vitest", "node"],
7-
"baseUrl": "."
6+
"types": ["vitest", "node"]
87
},
98
"include": ["src/**/*", "tests/**/*", "vite.config.ts"],
109
"exclude": ["dist", "node_modules"]

packages/lib/src/core/templates-zsh.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ docker_git_prompt_apply() {
8484
docker_git_terminal_sanitize
8585
local b
8686
b="$(docker_git_branch)"
87-
local short_pwd
88-
short_pwd="$(docker_git_short_pwd)"
89-
local base="[%*] $short_pwd"
87+
local short_path
88+
short_path="$(docker_git_short_pwd)"
89+
local base="[%*] $short_path"
9090
if [[ -n "$b" ]]; then
9191
PROMPT="$base ($b)> "
9292
else

packages/lib/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
"declaration": true,
77
"declarationMap": true,
88
"types": ["vitest", "node"],
9-
"baseUrl": ".",
109
"paths": {
11-
"@/*": ["src/*"]
10+
"@/*": ["./src/*"]
1211
}
1312
},
1413
"include": ["src/**/*"],

0 commit comments

Comments
 (0)