@networkbase/cli 2.0.0 → 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.
- package/bin/nb.mjs +2 -1
- 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
|
-
|
|
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`);
|