Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

glcl

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glcl - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

12

dist/searchAndDeleteFileGlobs.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc