@unoverse-platform/studio 0.1.32 → 0.1.34
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/bin/studio.mjs +9 -3
- package/package.json +1 -1
package/bin/studio.mjs
CHANGED
|
@@ -116,11 +116,17 @@ async function scaffoldIfEmpty() {
|
|
|
116
116
|
if (!name) {
|
|
117
117
|
// NOTHING TO DERIVE — the folder is called something no project can be called
|
|
118
118
|
// (capitals, dots, a leading digit). This is the only case that still asks.
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
//
|
|
120
|
+
// SAY WHAT THE NAME IS FOR. It read as a rejection followed by a bare prompt: a
|
|
121
|
+
// developer adding Studio to a universe they had just set up could not tell what was
|
|
122
|
+
// being named or why one was needed. The name is the folder under rx/ AND the org
|
|
123
|
+
// column on everything that project publishes, which is why the tool cannot pick it.
|
|
124
|
+
console.log(`\n Setting up Studio here.\n\n ${cwd}\n`);
|
|
125
|
+
console.log(` Your components live in rx/<project>/, and that name is the org they`);
|
|
126
|
+
console.log(` publish under. This folder is "${derived}", which cannot be one.\n`);
|
|
121
127
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
122
128
|
for (;;) {
|
|
123
|
-
name = (await rl.question(" Name your project [my-project]: ")).trim() || "my-project";
|
|
129
|
+
name = (await rl.question(" Name your Studio project [my-project]: ")).trim() || "my-project";
|
|
124
130
|
const bad = checkProjectName(name);
|
|
125
131
|
if (!bad) break;
|
|
126
132
|
console.log(` ${bad}\n`);
|