create-bunspace 0.1.0 → 0.1.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/bin.js +5 -5
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -5203,7 +5203,7 @@ async function promptMonorepo(args) {
|
|
|
5203
5203
|
type: args.projectName ? null : "text",
|
|
5204
5204
|
name: "name",
|
|
5205
5205
|
message: "Project name",
|
|
5206
|
-
initial:
|
|
5206
|
+
initial: parsed.name,
|
|
5207
5207
|
validate: (value) => {
|
|
5208
5208
|
if (!value)
|
|
5209
5209
|
return "Project name is required";
|
|
@@ -5218,7 +5218,7 @@ async function promptMonorepo(args) {
|
|
|
5218
5218
|
type: args.scope ? null : "text",
|
|
5219
5219
|
name: "scope",
|
|
5220
5220
|
message: "npm scope",
|
|
5221
|
-
initial: (prev) => nameToScope(
|
|
5221
|
+
initial: (prev) => nameToScope(prev || parsed.name),
|
|
5222
5222
|
format: (value) => {
|
|
5223
5223
|
const trimmed = value.trim();
|
|
5224
5224
|
return trimmed.startsWith("@") ? trimmed : `@${trimmed}`;
|
|
@@ -5257,7 +5257,7 @@ Operation cancelled`));
|
|
|
5257
5257
|
});
|
|
5258
5258
|
const name = args.projectName ? parsed.name : response.name;
|
|
5259
5259
|
const scope = args.scope || response.scope;
|
|
5260
|
-
const targetDir = args.dir ||
|
|
5260
|
+
const targetDir = args.dir || `./${name}`;
|
|
5261
5261
|
return {
|
|
5262
5262
|
template: "monorepo",
|
|
5263
5263
|
name,
|
|
@@ -5277,7 +5277,7 @@ async function promptTelegramBot(args) {
|
|
|
5277
5277
|
type: args.projectName ? null : "text",
|
|
5278
5278
|
name: "name",
|
|
5279
5279
|
message: "Bot name (kebab-case)",
|
|
5280
|
-
initial:
|
|
5280
|
+
initial: parsed.name,
|
|
5281
5281
|
validate: (value) => {
|
|
5282
5282
|
if (!value)
|
|
5283
5283
|
return "Bot name is required";
|
|
@@ -5337,7 +5337,7 @@ Operation cancelled`));
|
|
|
5337
5337
|
});
|
|
5338
5338
|
const name = args.projectName ? parsed.name : response.name;
|
|
5339
5339
|
const scope = args.scope || response.scope;
|
|
5340
|
-
const targetDir = args.dir ||
|
|
5340
|
+
const targetDir = args.dir || `./${name}`;
|
|
5341
5341
|
return {
|
|
5342
5342
|
template: "telegram-bot",
|
|
5343
5343
|
name,
|