betterstart-cli 0.0.59 → 0.0.60
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 +1 -27
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -25737,9 +25737,7 @@ async function runInitCommand(name, options) {
|
|
|
25737
25737
|
);
|
|
25738
25738
|
process.exit(1);
|
|
25739
25739
|
}
|
|
25740
|
-
|
|
25741
|
-
const nextVersionSuffix = installedNextVersion ? `${pc6.cyan(`v${installedNextVersion}`)}` : "";
|
|
25742
|
-
createNextAppSpinner.stop(`Created a Next.js ${nextVersionSuffix} app in ${displayName}`);
|
|
25740
|
+
createNextAppSpinner.clear();
|
|
25743
25741
|
project2 = detectProject(cwd, namespace);
|
|
25744
25742
|
isFreshProject = true;
|
|
25745
25743
|
}
|
|
@@ -26338,30 +26336,6 @@ function hasDbUrl(cwd) {
|
|
|
26338
26336
|
}
|
|
26339
26337
|
return false;
|
|
26340
26338
|
}
|
|
26341
|
-
function detectInstalledNextVersion(cwd) {
|
|
26342
|
-
const installedNextPackagePath = path50.join(cwd, "node_modules", "next", "package.json");
|
|
26343
|
-
if (fs39.existsSync(installedNextPackagePath)) {
|
|
26344
|
-
try {
|
|
26345
|
-
const installedPkg = JSON.parse(fs39.readFileSync(installedNextPackagePath, "utf-8"));
|
|
26346
|
-
if (typeof installedPkg.version === "string" && installedPkg.version.length > 0) {
|
|
26347
|
-
return installedPkg.version;
|
|
26348
|
-
}
|
|
26349
|
-
} catch {
|
|
26350
|
-
}
|
|
26351
|
-
}
|
|
26352
|
-
const projectPackagePath = path50.join(cwd, "package.json");
|
|
26353
|
-
if (!fs39.existsSync(projectPackagePath)) return void 0;
|
|
26354
|
-
try {
|
|
26355
|
-
const projectPkg = JSON.parse(fs39.readFileSync(projectPackagePath, "utf-8"));
|
|
26356
|
-
const nextVersion = projectPkg.dependencies?.next ?? projectPkg.devDependencies?.next;
|
|
26357
|
-
if (typeof nextVersion !== "string" || nextVersion.length === 0) {
|
|
26358
|
-
return void 0;
|
|
26359
|
-
}
|
|
26360
|
-
return nextVersion.replace(/^[~^<>=\s]+/, "");
|
|
26361
|
-
} catch {
|
|
26362
|
-
return void 0;
|
|
26363
|
-
}
|
|
26364
|
-
}
|
|
26365
26339
|
function shouldUseTerminalForDbPush(options) {
|
|
26366
26340
|
return !options.yes && process.env.CI !== "true" && Boolean(process.stdin.isTTY) && Boolean(process.stdout.isTTY);
|
|
26367
26341
|
}
|