Remove unnecessary console logs
This commit is contained in:
parent
285568deb2
commit
ed5248a43f
@ -30,12 +30,6 @@ try {
|
|||||||
|
|
||||||
const options = configFileObject.options;
|
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]) {
|
if (firstFile && files?.[0]) {
|
||||||
watchFiles({ files, options });
|
watchFiles({ files, options });
|
||||||
} else if (firstFolder && folders?.[0]) {
|
} else if (firstFolder && folders?.[0]) {
|
||||||
|
@ -24,8 +24,6 @@ async function watchFolders({ folders, options }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const dirPath = typeof dir == "string" ? dir : dir.path;
|
const dirPath = typeof dir == "string" ? dir : dir.path;
|
||||||
console.log(`Handling dir ${dirPath}`);
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(typeof dir == "string" && !fs.existsSync(dirPath)) ||
|
(typeof dir == "string" && !fs.existsSync(dirPath)) ||
|
||||||
(typeof dir == "object" &&
|
(typeof dir == "object" &&
|
||||||
@ -78,8 +76,6 @@ async function watchFolders({ folders, options }) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`Watching dir ${dirPath}`);
|
|
||||||
|
|
||||||
if (typeof dir == "string") {
|
if (typeof dir == "string") {
|
||||||
sync({ dirPath, dirs, options });
|
sync({ dirPath, dirs, options });
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "turbosync",
|
"name": "turbosync",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"module": "index.js",
|
"module": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.ts",
|
"start": "node index.ts",
|
||||||
|
Loading…
Reference in New Issue
Block a user