betterstart-cli 0.0.69 → 0.0.70
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/cli.js +7 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -22219,7 +22219,7 @@ async function promptServices() {
|
|
|
22219
22219
|
options: [
|
|
22220
22220
|
{
|
|
22221
22221
|
value: "vercel",
|
|
22222
|
-
label: "Vercel (Neon)",
|
|
22222
|
+
label: "Vercel (Neon Postgress)",
|
|
22223
22223
|
hint: "Automatically provision a Neon Postgres database"
|
|
22224
22224
|
},
|
|
22225
22225
|
{
|
|
@@ -22947,6 +22947,11 @@ import pc2 from "picocolors";
|
|
|
22947
22947
|
function isString(value) {
|
|
22948
22948
|
return typeof value === "string" && value.trim().length > 0;
|
|
22949
22949
|
}
|
|
22950
|
+
function hasNoUsableLinkedProject(detail) {
|
|
22951
|
+
return /no linked project found|no project specified.*railway link|project is deleted.*railway link/i.test(
|
|
22952
|
+
detail
|
|
22953
|
+
);
|
|
22954
|
+
}
|
|
22950
22955
|
function parseProjectSummary(value) {
|
|
22951
22956
|
if (!value || typeof value !== "object") return void 0;
|
|
22952
22957
|
const project2 = value;
|
|
@@ -22970,7 +22975,7 @@ async function readRailwayProjectContext(runner, cwd, environment, env) {
|
|
|
22970
22975
|
if (!result.success) {
|
|
22971
22976
|
const detail = railwayOutputTail(`${result.stdout}
|
|
22972
22977
|
${result.stderr}`);
|
|
22973
|
-
if (detail &&
|
|
22978
|
+
if (detail && hasNoUsableLinkedProject(detail)) {
|
|
22974
22979
|
return void 0;
|
|
22975
22980
|
}
|
|
22976
22981
|
throw new Error(detail ?? "Could not inspect the linked Railway project.");
|