@oclif/plugin-update 3.2.0 → 3.2.2

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 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', this.config.version].includes(path.basename(f.path)))
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));
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.2.0",
2
+ "version": "3.2.2",
3
3
  "commands": {
4
4
  "update": {
5
5
  "id": "update",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-update",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "author": "Salesforce",
5
5
  "bugs": "https://github.com/oclif/plugin-update/issues",
6
6
  "dependencies": {