From ef92c480c5411ba20ee869d8502f58f1e8418268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Bou=C3=A7as?= Date: Mon, 18 Nov 2024 13:49:39 +0000 Subject: [PATCH] fix: turn log line into system log (#5910) --- packages/build/src/plugins_core/pre_dev_cleanup/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/build/src/plugins_core/pre_dev_cleanup/index.ts b/packages/build/src/plugins_core/pre_dev_cleanup/index.ts index c4a41a9c1c..95c50eefa1 100644 --- a/packages/build/src/plugins_core/pre_dev_cleanup/index.ts +++ b/packages/build/src/plugins_core/pre_dev_cleanup/index.ts @@ -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 => { @@ -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 {} }