From 67efe6878192466cdb19c62ad489001079e96ddb Mon Sep 17 00:00:00 2001 From: Austin McGee <947888+amcgee@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:54:13 +0100 Subject: [PATCH] chore: log pretty-printed relative paths --- cli/src/lib/compiler/compile.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/cli/src/lib/compiler/compile.js b/cli/src/lib/compiler/compile.js index a74cfbd1..3cc84898 100644 --- a/cli/src/lib/compiler/compile.js +++ b/cli/src/lib/compiler/compile.js @@ -97,7 +97,11 @@ const compile = async ({ const babelConfig = makeBabelConfig({ moduleType, mode }) const copyFile = async (source, destination) => { - reporter.debug(`Copying ${source} to ${destination}`) + reporter.debug( + `Copying ${prettyPrint.relativePath( + source + )} to ${prettyPrint.relativePath(destination)}` + ) await fs.copy(source, destination) } const compileFile = async (source, destination) => { @@ -112,7 +116,11 @@ const compile = async ({ const jsDestination = normalizeExtension(destination) reporter.debug( - `Compiled ${source} with Babel, saving to ${jsDestination}` + `Compiled ${prettyPrint.relativePath( + source + )} with Babel, saving to ${prettyPrint.relativePath( + jsDestination + )}` ) await fs.writeFile(jsDestination, result.code)