From ed5248a43f549691f2ca48ec61fae16efc366339 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Wed, 16 Oct 2024 08:34:18 +0100 Subject: [PATCH] Remove unnecessary console logs --- lib/sync.js | 6 ------ lib/watch/folders.js | 4 ---- package.json | 2 +- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/sync.js b/lib/sync.js index 35b16d6..c8dd6a4 100644 --- a/lib/sync.js +++ b/lib/sync.js @@ -30,12 +30,6 @@ try { const options = configFileObject.options; - console.log("firstFolder", firstFolder); - console.log("folders", folders); - - console.log("firstFolder", firstFolder); - console.log("isFolders", Boolean(folders?.[0])); - if (firstFile && files?.[0]) { watchFiles({ files, options }); } else if (firstFolder && folders?.[0]) { diff --git a/lib/watch/folders.js b/lib/watch/folders.js index dd35629..6385462 100644 --- a/lib/watch/folders.js +++ b/lib/watch/folders.js @@ -24,8 +24,6 @@ async function watchFolders({ folders, options }) { } const dirPath = typeof dir == "string" ? dir : dir.path; - console.log(`Handling dir ${dirPath}`); - if ( (typeof dir == "string" && !fs.existsSync(dirPath)) || (typeof dir == "object" && @@ -78,8 +76,6 @@ async function watchFolders({ folders, options }) { } } - console.log(`Watching dir ${dirPath}`); - if (typeof dir == "string") { sync({ dirPath, dirs, options }); diff --git a/package.json b/package.json index b5ce5a7..782055c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "turbosync", - "version": "1.2.0", + "version": "1.2.1", "module": "index.js", "scripts": { "start": "node index.ts",