naro-cli 0.5.0 → 0.5.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/dist/index.js +14 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -805,7 +805,20 @@ async function resolveDestination(context, link, canPrompt) {
|
|
|
805
805
|
const match = teams.find((team) => team.slug === link.teamSlug);
|
|
806
806
|
if (match) return match;
|
|
807
807
|
} else if (link) {
|
|
808
|
-
|
|
808
|
+
let project;
|
|
809
|
+
try {
|
|
810
|
+
project = await client.projects.get(link.projectId);
|
|
811
|
+
} catch (error) {
|
|
812
|
+
if (isNaroError(error) && error.code !== "NOT_FOUND") throw error;
|
|
813
|
+
throw new NaroError(
|
|
814
|
+
"PROJECT_NOT_FOUND",
|
|
815
|
+
`This directory is linked to a project ${await accountLabel(context)} cannot see.
|
|
816
|
+
The CLI signs in separately from the dashboard \u2014 check with \`naro whoami\`.
|
|
817
|
+
Wrong account? naro logout && naro login
|
|
818
|
+
Project gone? remove .naro, then naro deploy`,
|
|
819
|
+
{ cause: error }
|
|
820
|
+
);
|
|
821
|
+
}
|
|
809
822
|
const match = teams.find((team) => team.id === project.teamId);
|
|
810
823
|
if (match) return match;
|
|
811
824
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naro-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"naro": "./dist/index.js"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"tsx": "4.23.12",
|
|
29
29
|
"typescript": "7.0.2",
|
|
30
30
|
"vitest": "3.2.7",
|
|
31
|
-
"@next-deploy/core": "0.1.0",
|
|
32
31
|
"@next-deploy/build": "0.1.0",
|
|
32
|
+
"@next-deploy/core": "0.1.0",
|
|
33
33
|
"@next-deploy/config": "0.1.0",
|
|
34
34
|
"@next-deploy/sdk": "0.1.0"
|
|
35
35
|
},
|