@oclif/plugin-update 3.2.0 → 3.2.1
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/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