fix: prioritize .taskmaster in parent directories over other project markers (#1351)

Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>
This commit is contained in:
Ben Coombs
2025-11-12 13:13:06 +00:00
committed by GitHub
parent e108f4310c
commit 37aee7809c
27 changed files with 737 additions and 343 deletions

View File

@@ -16,6 +16,7 @@ import {
} from '@tm/core';
import * as ui from '../utils/ui.js';
import { displayError } from '../utils/error-handler.js';
import { getProjectRoot } from '../utils/project-root.js';
/**
* Result type from export command
@@ -76,7 +77,7 @@ export class ExportCommand extends Command {
try {
// Initialize TmCore
this.taskMasterCore = await createTmCore({
projectPath: process.cwd()
projectPath: getProjectRoot()
});
} catch (error) {
throw new Error(