@nimbuslab/cli 0.2.6 → 0.2.7
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/index.js +1 -1
- package/package.json +1 -1
- package/src/commands/create.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -1163,7 +1163,7 @@ async function promptConfig(initialName) {
|
|
|
1163
1163
|
const projectNameForRailway = name;
|
|
1164
1164
|
console.log(import_picocolors3.default.dim(` Criando projeto "${projectNameForRailway}" no Railway...`));
|
|
1165
1165
|
try {
|
|
1166
|
-
const result = await $2`railway init -n ${projectNameForRailway} --json`.text();
|
|
1166
|
+
const result = await $2`echo "" | railway init -n ${projectNameForRailway} -w nimbuslab --json`.text();
|
|
1167
1167
|
const newProject = JSON.parse(result);
|
|
1168
1168
|
railwayProject = newProject.name || projectNameForRailway;
|
|
1169
1169
|
console.log(import_picocolors3.default.green(` Projeto "${railwayProject}" criado com sucesso!`));
|
package/package.json
CHANGED
package/src/commands/create.ts
CHANGED
|
@@ -408,7 +408,8 @@ async function promptConfig(initialName?: string): Promise<ProjectConfig | symbo
|
|
|
408
408
|
const projectNameForRailway = name as string
|
|
409
409
|
console.log(pc.dim(` Criando projeto "${projectNameForRailway}" no Railway...`))
|
|
410
410
|
try {
|
|
411
|
-
|
|
411
|
+
// Usa echo para passar input vazio e aceitar defaults (workspace)
|
|
412
|
+
const result = await $`echo "" | railway init -n ${projectNameForRailway} -w nimbuslab --json`.text()
|
|
412
413
|
const newProject = JSON.parse(result)
|
|
413
414
|
railwayProject = newProject.name || projectNameForRailway
|
|
414
415
|
console.log(pc.green(` Projeto "${railwayProject}" criado com sucesso!`))
|