remove-glob 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -71,8 +71,6 @@ try {
71
71
  describe: 'If true, it will log each file or directory being removed',
72
72
  },
73
73
  },
74
- helpOptLength: 16,
75
- helpDescLength: 73,
76
74
  version: readPackage().version,
77
75
  };
78
76
  const results = parseArgs(config);
package/dist/index.js CHANGED
@@ -58,7 +58,7 @@ export function removeSync(opts = {}, callback) {
58
58
  readdirSync(path).forEach(name => {
59
59
  removeSync({ paths: join(path, name) }); // recursively remove content
60
60
  });
61
- rmSync(path, { recursive: true, force: true });
61
+ rmSync(path, { recursive: true, force: true, maxRetries: process.platform === 'win32' ? 10 : 0 });
62
62
  }
63
63
  }
64
64
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remove-glob",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "A tiny utility to remove items or directories recursively, also supports glob",
5
5
  "bin": {
6
6
  "remove": "dist/cli.js"
package/src/cli.ts CHANGED
@@ -76,8 +76,6 @@ try {
76
76
  describe: 'If true, it will log each file or directory being removed',
77
77
  },
78
78
  },
79
- helpOptLength: 16,
80
- helpDescLength: 73,
81
79
  version: readPackage().version,
82
80
  } as const;
83
81
 
package/src/index.ts CHANGED
@@ -70,7 +70,7 @@ export function removeSync(opts: RemoveOptions = {}, callback?: (e?: Error) => v
70
70
  readdirSync(path).forEach(name => {
71
71
  removeSync({ paths: join(path, name) }); // recursively remove content
72
72
  });
73
- rmSync(path, { recursive: true, force: true });
73
+ rmSync(path, { recursive: true, force: true, maxRetries: process.platform === 'win32' ? 10 : 0 });
74
74
  }
75
75
  } else {
76
76
  // files