Skip to content

Commit

Permalink
refactor: simplify JSON import in build-rss and remove debug log in c…
Browse files Browse the repository at this point in the history
…ombine-tools
  • Loading branch information
JeelRajodiya committed Dec 30, 2024
1 parent 15c0759 commit 76dee32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build-rss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import json2xml from 'jgexml/json2xml';
import type { BlogPostTypes, RSS, RSSItemType } from '@/types/scripts/build-rss';

async function getAllPosts() {
const posts = (await import('../config/posts.json', { assert: { type: 'json' } })).default;
const posts = (await import('../config/posts.json')).default;

return posts;
}
Expand Down
1 change: 0 additions & 1 deletion scripts/tools/combine-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ const combineTools = async (automatedTools: any, manualTools: any, toolsPath: st
}
}
finalToolsList.sort((tool, anotherTool) => tool.title.localeCompare(anotherTool.title));
console.log('finalToolsList', finalToolsList, '\n', 'key', key, '\n');
finalTools[key].toolsList = finalToolsList;
}
fs.writeFileSync(toolsPath, JSON.stringify(finalTools));
Expand Down

0 comments on commit 76dee32

Please sign in to comment.