@networkbase/cli 2.0.0-next.3 → 2.0.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.
Files changed (2) hide show
  1. package/bin/nb.mjs +2 -1
  2. package/package.json +1 -1
package/bin/nb.mjs CHANGED
@@ -47,7 +47,8 @@ try {
47
47
  const { remindOnce } = await import("../lib/print/remind.mjs");
48
48
  remindOnce(ctx, `alias:${alias.from}`, `nb ${alias.from} is now nb ${alias.to} (the old name works until 3.0)`);
49
49
  }
50
- await ctx.resolveWorkspace();
50
+ // login is what signs you in, so it can't look a workspace up first; an agent's workspace is picked on the approval page.
51
+ if (spec.name !== "login") await ctx.resolveWorkspace();
51
52
  const mod = await import(`../lib/commands/${spec.module}.mjs`);
52
53
  const run = mod[spec.fn];
53
54
  if (typeof run !== "function") throw new CliError("INTERNAL", `nb ${spec.name} isn't built yet`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@networkbase/cli",
3
- "version": "2.0.0-next.3",
3
+ "version": "2.0.1",
4
4
  "description": "NetworkBase in your terminal: sync files, work on tasks, edit docs",
5
5
  "type": "module",
6
6
  "homepage": "https://networkbase.in",