@oclif/plugin-update 3.2.0 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/update.js +4 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/lib/update.js
CHANGED
@@ -308,7 +308,10 @@ class Updater {
|
|
308
308
|
return;
|
309
309
|
const files = await (0, util_1.ls)(root);
|
310
310
|
const promises = files.map(async (f) => {
|
311
|
-
if (['bin', 'current'
|
311
|
+
if (['bin', 'current'].includes(path.basename(f.path)))
|
312
|
+
return;
|
313
|
+
// if 1.2.3-shasha7 starts with 1.2.3
|
314
|
+
if (path.basename(f.path).startsWith(this.config.version))
|
312
315
|
return;
|
313
316
|
const mtime = f.stat.mtime;
|
314
317
|
mtime.setHours(mtime.getHours() + (42 * 24));
|
package/oclif.manifest.json
CHANGED