Skip to content

Commit

Permalink
fix(shared): console output of file-changed event
Browse files Browse the repository at this point in the history
  • Loading branch information
sdorra committed Aug 3, 2024
1 parent a1dd55b commit 2af05da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-mugs-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@content-collections/integrations": patch
---

Fix console output of file-changed event
4 changes: 2 additions & 2 deletions packages/integrations/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export function configureLogging(builder: Builder) {
builder.on("watcher:file-changed", (event) => {
const relativePath = path.relative(process.cwd(), event.filePath);
if (event.modification === "delete") {
console.log("... file deleted", relativePath);
console.log("... file", relativePath, "deleted");
} else {
console.log("... file changed", relativePath);
console.log("... file", relativePath, "changed");
}
});

Expand Down

0 comments on commit 2af05da

Please sign in to comment.