@astrojs/upgrade 0.4.0 → 0.4.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/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -586,7 +586,13 @@ async function verify(ctx) {
|
|
|
586
586
|
ctx.exit(1);
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
await verifyAstroProject(ctx);
|
|
589
|
+
const isAstroProject = await verifyAstroProject(ctx);
|
|
590
|
+
if (!isAstroProject) {
|
|
591
|
+
bannerAbort();
|
|
592
|
+
newline();
|
|
593
|
+
error("error", `Astro installation not found in the current directory.`);
|
|
594
|
+
ctx.exit(1);
|
|
595
|
+
}
|
|
590
596
|
const ok = await verifyVersions(ctx, registry);
|
|
591
597
|
if (!ok) {
|
|
592
598
|
bannerAbort();
|