@oclif/plugin-update 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
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.1",
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.1",
4
4
  "author": "Salesforce",
5
5
  "bugs": "https://github.com/oclif/plugin-update/issues",
6
6
  "dependencies": {