Comparing version 0.1.0 to 0.2.0
@@ -1,2 +0,2 @@ | ||
import { $ } from "bun"; | ||
import { rimraf } from "rimraf"; | ||
export async function searchAndDeleteFileGlobs(fileGlobPatterns) { | ||
@@ -7,7 +7,9 @@ for (const fileGlobPattern of fileGlobPatterns) { | ||
console.log(`Found ${filesToDelete.length} files to delete at pattern "${fileGlobPattern}"`); | ||
for (const fileToDelete of filesToDelete) { | ||
console.log(`Deleting file: "${fileToDelete}"`); | ||
await $ `bunx rimraf ${fileToDelete}`; | ||
} | ||
await rimraf(filesToDelete); | ||
// for (const fileToDelete of filesToDelete) { | ||
// console.log(`Deleting file: "${fileToDelete}"`); | ||
// | ||
// // await $`bunx --bun rimraf ${fileToDelete}`; | ||
// } | ||
} | ||
} |
{ | ||
"name": "glcl", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Cleans your repo via looking at a list of glob patterns in the root", | ||
@@ -13,2 +13,5 @@ "module": "dist/bin.js", | ||
}, | ||
"dependencies": { | ||
"rimraf": "^6.0.1" | ||
}, | ||
"repository": { | ||
@@ -15,0 +18,0 @@ "type": "git", |
@@ -1,2 +0,2 @@ | ||
import { $ } from "bun"; | ||
import { rimraf } from "rimraf"; | ||
@@ -11,7 +11,9 @@ export async function searchAndDeleteFileGlobs(fileGlobPatterns: string[]) { | ||
for (const fileToDelete of filesToDelete) { | ||
console.log(`Deleting file: "${fileToDelete}"`); | ||
await $`bunx rimraf ${fileToDelete}`; | ||
} | ||
await rimraf(filesToDelete); | ||
// for (const fileToDelete of filesToDelete) { | ||
// console.log(`Deleting file: "${fileToDelete}"`); | ||
// | ||
// // await $`bunx --bun rimraf ${fileToDelete}`; | ||
// } | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
5467
136
1
+ Addedrimraf@^6.0.1
+ Added@isaacs/cliui@8.0.2(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@11.0.1(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@4.0.2(transitive)
+ Addedlru-cache@11.0.2(transitive)
+ Addedminimatch@10.0.1(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@2.0.0(transitive)
+ Addedrimraf@6.0.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)