@baseline-studio/cli 2.2.3 → 2.2.4
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 +2 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -31,7 +31,8 @@ async function init() {
|
|
|
31
31
|
const repo = "TrentM6/baseline-core";
|
|
32
32
|
// Use current directory if empty, otherwise create a subfolder
|
|
33
33
|
const cwd = process.cwd();
|
|
34
|
-
const
|
|
34
|
+
const npxArtifacts = new Set(["node_modules", "package-lock.json", "package.json"]);
|
|
35
|
+
const cwdEntries = (0, fs_1.readdirSync)(cwd).filter((f) => !f.startsWith(".") && !npxArtifacts.has(f));
|
|
35
36
|
const destDir = cwdEntries.length === 0
|
|
36
37
|
? cwd
|
|
37
38
|
: (0, path_1.join)(cwd, `${clientName.toLowerCase().replace(/\s+/g, "-")}-system`);
|
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.4");
|
|
13
13
|
program
|
|
14
14
|
.command("status")
|
|
15
15
|
.description("Show current version and check for updates")
|