betterstart-cli 0.0.53 → 0.0.54
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 +3 -11
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -22257,15 +22257,7 @@ async function promptProject(defaultName) {
|
|
|
22257
22257
|
p13.cancel("Setup cancelled.");
|
|
22258
22258
|
process.exit(0);
|
|
22259
22259
|
}
|
|
22260
|
-
|
|
22261
|
-
message: "Use src/ directory?",
|
|
22262
|
-
initialValue: false
|
|
22263
|
-
});
|
|
22264
|
-
if (p13.isCancel(useSrcDir)) {
|
|
22265
|
-
p13.cancel("Setup cancelled.");
|
|
22266
|
-
process.exit(0);
|
|
22267
|
-
}
|
|
22268
|
-
return { projectName: projectName.trim(), useSrcDir };
|
|
22260
|
+
return { projectName: projectName.trim() };
|
|
22269
22261
|
}
|
|
22270
22262
|
|
|
22271
22263
|
// adapters/next/init/scaffolders/api-routes.ts
|
|
@@ -25486,7 +25478,7 @@ function resolveNonInteractiveProject(name) {
|
|
|
25486
25478
|
if (projectName !== "." && !/^[a-z0-9_-]+$/i.test(projectName)) {
|
|
25487
25479
|
throw new Error("Project name can only contain letters, numbers, hyphens, and underscores");
|
|
25488
25480
|
}
|
|
25489
|
-
return { projectName
|
|
25481
|
+
return { projectName };
|
|
25490
25482
|
}
|
|
25491
25483
|
async function readExistingConfigNamespace(cwd) {
|
|
25492
25484
|
const configPath = path50.resolve(cwd, "admin.config.ts");
|
|
@@ -25651,7 +25643,7 @@ async function runInitCommand(name, options) {
|
|
|
25651
25643
|
p18.log.error(error instanceof Error ? error.message : String(error));
|
|
25652
25644
|
process.exit(1);
|
|
25653
25645
|
}
|
|
25654
|
-
srcDir =
|
|
25646
|
+
srcDir = false;
|
|
25655
25647
|
if (!options.yes) {
|
|
25656
25648
|
const pmChoice = await p18.select({
|
|
25657
25649
|
message: "Which package manager do you want to use?",
|