Skip to content

Commit

Permalink
fix: turn log line into system log (#5910)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas authored Nov 18, 2024
1 parent 319d6b3 commit ef92c48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/build/src/plugins_core/pre_dev_cleanup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { resolve } from 'node:path'

import { listFrameworks } from '@netlify/framework-info'

import { log } from '../../log/logger.js'
import { CoreStep, CoreStepCondition, CoreStepFunction, CoreStepFunctionArgs } from '../types.js'

const dirExists = async (path: string): Promise<boolean> => {
Expand Down Expand Up @@ -37,7 +36,7 @@ const coreStep: CoreStepFunction = async (input) => {
for (const dir of dirs) {
await rm(resolve(input.buildDir, dir), { recursive: true, force: true })
}
log(input.logs, `Cleaned up ${dirs.join(', ')}.`)
input.systemLog(input.logs, `Cleaned up ${dirs.join(', ')}.`)
return {}
}

Expand Down

0 comments on commit ef92c48

Please sign in to comment.