@lovo/matter-cli 0.2.0 → 0.3.0
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/CHANGELOG.md +2 -0
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ function fail(err) {
|
|
|
9
9
|
process.exit(1);
|
|
10
10
|
}
|
|
11
11
|
var program = new Command();
|
|
12
|
-
program.name("matter-cli").description("CLI for Matter \u2014 copy-paste components from the registry into your project").version("0.
|
|
12
|
+
program.name("matter-cli").description("CLI for Matter \u2014 copy-paste components from the registry into your project").version("0.3.0");
|
|
13
13
|
program.command("init").description("one-time project setup \u2014 writes matter.config.json").option("--force", "overwrite an existing matter.config.json").action(async (opts) => {
|
|
14
14
|
try {
|
|
15
15
|
const { runInit } = await import("./init-2LAX3FMP.js");
|
|
@@ -21,7 +21,7 @@ program.command("init").description("one-time project setup \u2014 writes matter
|
|
|
21
21
|
program.command("list").description("show available components in the registry").option("--registry <url>", "override the registryUrl from matter.config.json").option("--ref <ref>", "tag, branch, or commit (defaults to the CLI version)").action(async (opts) => {
|
|
22
22
|
try {
|
|
23
23
|
const { runList } = await import("./list-NJT3N4GO.js");
|
|
24
|
-
await runList({ ...opts, cliVersion: "0.
|
|
24
|
+
await runList({ ...opts, cliVersion: "0.3.0" });
|
|
25
25
|
} catch (err) {
|
|
26
26
|
fail(err);
|
|
27
27
|
}
|
|
@@ -30,7 +30,7 @@ program.command("add").description("copy one or more components from the registr
|
|
|
30
30
|
async (components, opts) => {
|
|
31
31
|
try {
|
|
32
32
|
const { runAdd } = await import("./add-XGRYN4L5.js");
|
|
33
|
-
await runAdd(components, { ...opts, cliVersion: "0.
|
|
33
|
+
await runAdd(components, { ...opts, cliVersion: "0.3.0" });
|
|
34
34
|
} catch (err) {
|
|
35
35
|
fail(err);
|
|
36
36
|
}
|
|
@@ -40,7 +40,7 @@ program.command("update").description("re-fetch a previously-added component (or
|
|
|
40
40
|
async (components, opts) => {
|
|
41
41
|
try {
|
|
42
42
|
const { runUpdate } = await import("./update-VVDMY542.js");
|
|
43
|
-
await runUpdate(components ?? [], { ...opts, cliVersion: "0.
|
|
43
|
+
await runUpdate(components ?? [], { ...opts, cliVersion: "0.3.0" });
|
|
44
44
|
} catch (err) {
|
|
45
45
|
fail(err);
|
|
46
46
|
}
|