fix: Ensure projectRoot is a string (potential WSL fix) (#892)
* ensure projectRoot is a string * add changeset
This commit is contained in:
5
.changeset/bright-monkeys-act.md
Normal file
5
.changeset/bright-monkeys-act.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"task-master-ai": patch
|
||||
---
|
||||
|
||||
Ensure projectRoot is a string (potential WSL fix)
|
||||
@@ -25,6 +25,9 @@ import { getLoggerOrDefault } from './logger-utils.js';
|
||||
export function normalizeProjectRoot(projectRoot) {
|
||||
if (!projectRoot) return projectRoot;
|
||||
|
||||
// Ensure it's a string
|
||||
projectRoot = String(projectRoot);
|
||||
|
||||
// Split the path into segments
|
||||
const segments = projectRoot.split(path.sep);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user