@baseline-studio/cli 2.2.0 → 2.2.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/commands/init.js +3 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -27,12 +27,9 @@ async function init() {
|
|
|
27
27
|
console.log(`\n Baseline System — New Client Setup`);
|
|
28
28
|
console.log(` ───────────────────────────────────\n`);
|
|
29
29
|
// 1. Gather basic info
|
|
30
|
-
const clientName = await ask(rl, "
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
`${clientName.toLowerCase().replace(/\s+/g, "-")}-system`;
|
|
34
|
-
const coreRepo = await ask(rl, " Core repo (TrentM6/baseline-core): ");
|
|
35
|
-
const repo = coreRepo.trim() || "TrentM6/baseline-core";
|
|
30
|
+
const clientName = await ask(rl, " What's your company or project name? ");
|
|
31
|
+
const folder = `${clientName.toLowerCase().replace(/\s+/g, "-")}-system`;
|
|
32
|
+
const repo = "TrentM6/baseline-core";
|
|
36
33
|
const destDir = (0, path_1.join)(process.cwd(), folder);
|
|
37
34
|
if ((0, fs_1.existsSync)(destDir)) {
|
|
38
35
|
console.error(`\n Error: ${folder} already exists.\n`);
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const program = new commander_1.Command();
|
|
|
9
9
|
program
|
|
10
10
|
.name("baseline")
|
|
11
11
|
.description("Distribute and update the Baseline System")
|
|
12
|
-
.version("2.2.
|
|
12
|
+
.version("2.2.1");
|
|
13
13
|
program
|
|
14
14
|
.command("status")
|
|
15
15
|
.description("Show current version and check for updates")
|