File tree Expand file tree Collapse file tree 2 files changed +23
-8
lines changed
Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 298298 }
299299 },
300300 "data" : [
301+ {
302+ "category" : " integration" ,
303+ "date" : " 2025-07-06" ,
304+ "description" : " Newly supported tokens: MEW" ,
305+ "relatedTokens" : [
306+ {
307+ "assetName" : " cat in a dogs world" ,
308+ "baseAsset" : " MEW" ,
309+ "url" : " https://docs.chain.link/ccip/directory/mainnet/token/MEW" ,
310+ "iconUrl" : " https://d2f70xi62kby8n.cloudfront.net/tokens/mew.webp?auto=compress%2Cformat"
311+ }
312+ ],
313+ "title" : " Cross-chain token (CCT) standard: Added support for new tokens" ,
314+ "topic" : " CCIP"
315+ },
301316 {
302317 "category" : " integration" ,
303318 "date" : " 2025-07-02" ,
Original file line number Diff line number Diff line change @@ -1614,17 +1614,17 @@ async function generateChangelogEntry(
16141614 }
16151615
16161616 // Format the JSON with prettier using project config
1617- const prettierConfig = ( await prettier . resolveConfig ( process . cwd ( ) ) ) || { }
1617+ const prettierConfig = await prettier . resolveConfig ( process . cwd ( ) )
16181618
1619- // Write the changelog json to the file first
1620- fs . writeFileSync ( FILE_PATHS . CHANGELOG , JSON . stringify ( changelog ) )
1621-
1622- // Then format the file directly using prettier API
1623- const formatted = await prettier . format ( fs . readFileSync ( FILE_PATHS . CHANGELOG , "utf8" ) , {
1619+ // Format the JSON content directly before writing (like detect-new-data.ts)
1620+ const formattedJson = await prettier . format ( JSON . stringify ( changelog ) , {
16241621 ...prettierConfig ,
1625- filepath : FILE_PATHS . CHANGELOG , // This ensures the correct parser based on file extension
1622+ parser : "json" , // Explicitly specify JSON parser
16261623 } )
1627- fs . writeFileSync ( FILE_PATHS . CHANGELOG , formatted )
1624+
1625+ // Write the formatted content directly
1626+ fs . writeFileSync ( FILE_PATHS . CHANGELOG , formattedJson , "utf8" )
1627+
16281628 const changelogSize = fs . statSync ( FILE_PATHS . CHANGELOG ) . size
16291629
16301630 logger . debug (
You can’t perform that action at this time.
0 commit comments