@seedvault/cli 0.4.2 → 0.4.3

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.
Files changed (2) hide show
  1. package/dist/sv.js +10 -12
  2. package/package.json +1 -1
package/dist/sv.js CHANGED
@@ -2780,15 +2780,13 @@ async function startForeground() {
2780
2780
  collections: config.collections,
2781
2781
  onLog: log
2782
2782
  });
2783
- if (config.collections.length > 0) {
2784
- log("Running initial sync...");
2785
- try {
2786
- const { uploaded, skipped, deleted } = await syncer.initialSync();
2787
- log(`Initial sync complete: ${uploaded} uploaded, ${skipped} skipped, ${deleted} deleted`);
2788
- } catch (e) {
2789
- log(`Initial sync failed: ${e.message}`);
2790
- log("Will continue watching for changes...");
2791
- }
2783
+ log("Running initial sync...");
2784
+ try {
2785
+ const { uploaded, skipped, deleted } = await syncer.initialSync();
2786
+ log(`Initial sync complete: ${uploaded} uploaded, ${skipped} skipped, ${deleted} deleted`);
2787
+ } catch (e) {
2788
+ log(`Initial sync failed: ${e.message}`);
2789
+ log("Will continue watching for changes...");
2792
2790
  }
2793
2791
  let watcher = null;
2794
2792
  const rebuildWatcher = async (collections2) => {
@@ -3047,7 +3045,7 @@ Share this with the person you want to invite.`);
3047
3045
  }
3048
3046
  }
3049
3047
 
3050
- // src/commands/upgrade.ts
3048
+ // src/commands/update.ts
3051
3049
  import { readFileSync as readFileSync2 } from "fs";
3052
3050
  import { resolve as resolve6 } from "path";
3053
3051
  var {$ } = globalThis.Bun;
@@ -3105,7 +3103,7 @@ Vault:
3105
3103
  invite Generate an invite code (operator only)
3106
3104
 
3107
3105
  Maintenance:
3108
- upgrade Upgrade CLI to latest version
3106
+ update Update CLI to latest version
3109
3107
  `.trim();
3110
3108
  async function main() {
3111
3109
  const [cmd, ...args] = process.argv.slice(2);
@@ -3145,7 +3143,7 @@ async function main() {
3145
3143
  return await contributors();
3146
3144
  case "invite":
3147
3145
  return await invite();
3148
- case "upgrade":
3146
+ case "update":
3149
3147
  return await upgrade();
3150
3148
  default:
3151
3149
  console.error(`Unknown command: ${cmd}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seedvault/cli",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sv": "bin/sv.mjs"