Skip to content

Commit

Permalink
chore: log pretty-printed relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgee committed Nov 21, 2024
1 parent 50f7656 commit 67efe68
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cli/src/lib/compiler/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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)
Expand Down

0 comments on commit 67efe68

Please sign in to comment.