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