Skip to content

Commit 56a415e

Browse files
authored
fix: Ensure projectRoot is a string (potential WSL fix) (#892)
* ensure projectRoot is a string * add changeset
1 parent f081bba commit 56a415e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/bright-monkeys-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"task-master-ai": patch
3+
---
4+
5+
Ensure projectRoot is a string (potential WSL fix)

src/utils/path-utils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ import { getLoggerOrDefault } from './logger-utils.js';
2525
export function normalizeProjectRoot(projectRoot) {
2626
if (!projectRoot) return projectRoot;
2727

28+
// Ensure it's a string
29+
projectRoot = String(projectRoot);
30+
2831
// Split the path into segments
2932
const segments = projectRoot.split(path.sep);
3033

0 commit comments

Comments
 (0)