Fix formatting once and for all
This commit is contained in:
committed by
Ralph Khreish
parent
3fa0c7f7af
commit
33208388bd
@@ -346,10 +346,9 @@ function readJSON(filepath, projectRoot = null, tag = null) {
|
||||
console.log(`File is in legacy format, performing migration...`);
|
||||
}
|
||||
|
||||
// This is legacy format - migrate it to tagged format
|
||||
// Normalize task IDs before migration
|
||||
normalizeTaskIds(data.tasks);
|
||||
|
||||
// This is legacy format - migrate it to tagged format
|
||||
const migratedData = {
|
||||
master: {
|
||||
tasks: data.tasks,
|
||||
@@ -475,8 +474,7 @@ function readJSON(filepath, projectRoot = null, tag = null) {
|
||||
// Get the data for the resolved tag
|
||||
const tagData = data[resolvedTag];
|
||||
if (tagData && tagData.tasks) {
|
||||
// Normalize task IDs for the resolved tag
|
||||
normalizeTaskIds(tagData.tasks);
|
||||
normalizeTaskIds(data.tasks);
|
||||
|
||||
// Add the _rawTaggedData property and the resolved tag to the returned data
|
||||
const result = {
|
||||
@@ -494,8 +492,7 @@ function readJSON(filepath, projectRoot = null, tag = null) {
|
||||
// If the resolved tag doesn't exist, fall back to master
|
||||
const masterData = data.master;
|
||||
if (masterData && masterData.tasks) {
|
||||
// Normalize task IDs for master fallback
|
||||
normalizeTaskIds(masterData.tasks);
|
||||
normalizeTaskIds(data.tasks);
|
||||
|
||||
if (isDebug) {
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user