Skip to content

Commit

Permalink
fix(plugin-sitemap): fix output logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Feb 1, 2024
1 parent 4280bc6 commit 7389d32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/plugin-sitemap/src/node/outputSitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export const outputSitemap = async (
const robotTxtPath = dir.dest('robots.txt')

if (fs.existsSync(robotTxtPath)) {
logger.load(`Appended sitemap path to ${colors.cyan('robots.txt')}`)
const { succeed } = logger.load(
`Appended sitemap path to ${colors.cyan('robots.txt')}`,
)

const robotsTxt = await fs.readFile(robotTxtPath, 'utf-8')

Expand All @@ -40,6 +42,6 @@ export const outputSitemap = async (
flag: 'w',
})

logger.succeed()
succeed()
}
}

0 comments on commit 7389d32

Please sign in to comment.