Skip to content

Commit

Permalink
fixed path
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Oct 6, 2024
1 parent 5b920c1 commit 2594d7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .hintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"button-name": "off"
}
],
"no-inline-styles": "off"
"no-inline-styles": "off",
"typescript-config/is-valid": "off"
}
}
4 changes: 2 additions & 2 deletions apps/workflows/update_nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function addRestVersion(data: Node[]): Node[] {
}

// Load data from nodes.json
const data: Node[] = JSON.parse(fs.readFileSync('nodes.json', 'utf8'));
const data: Node[] = JSON.parse(fs.readFileSync('../../nodes.json', 'utf8'));

// Add restVersion if it is missing
const dataWithRestVersion = addRestVersion(data);
Expand All @@ -60,7 +60,7 @@ if (uniqueData.length < data.length) {
console.log("Duplicate nodes removed.");

// Save updated data back to nodes.json
fs.writeFileSync('nodes.json', JSON.stringify(uniqueData, null, 4));
fs.writeFileSync('../../nodes.json', JSON.stringify(uniqueData, null, 4));
} else {
console.log("No duplicate nodes found.");
}
Expand Down

0 comments on commit 2594d7d

Please sign in to comment.