vectify 2.1.1 → 2.1.2
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/README.md +43 -0
- package/README.zh-CN.md +43 -0
- package/dist/chunk-2ITFHLOW.mjs +32693 -0
- package/dist/{chunk-FS34P27H.mjs → chunk-SYQXCPHN.mjs} +51 -0
- package/dist/cli.js +32300 -1618
- package/dist/cli.mjs +6 -6
- package/dist/{helpers-ZOR3OD66.mjs → helpers-J6LH6RYY.mjs} +1 -1
- package/dist/index.js +32299 -1618
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-QYE23M3E.mjs +0 -2024
package/dist/cli.mjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
generate,
|
|
4
4
|
init,
|
|
5
|
+
source_default,
|
|
5
6
|
watch
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-2ITFHLOW.mjs";
|
|
8
|
+
import "./chunk-SYQXCPHN.mjs";
|
|
8
9
|
|
|
9
10
|
// src/cli.ts
|
|
10
11
|
import { readFileSync } from "fs";
|
|
11
12
|
import { dirname, join } from "path";
|
|
12
13
|
import { fileURLToPath } from "url";
|
|
13
|
-
import chalk from "chalk";
|
|
14
14
|
import { Command } from "commander";
|
|
15
15
|
function getPackageJson() {
|
|
16
16
|
let pkgPath;
|
|
@@ -30,7 +30,7 @@ program.command("init").description("Initialize a new configuration file").optio
|
|
|
30
30
|
try {
|
|
31
31
|
await init(options);
|
|
32
32
|
} catch (error) {
|
|
33
|
-
console.error(
|
|
33
|
+
console.error(source_default.red(`Error: ${error.message}`));
|
|
34
34
|
process.exit(1);
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -38,7 +38,7 @@ program.command("generate").description("Generate icon components from SVG files
|
|
|
38
38
|
try {
|
|
39
39
|
await generate(options);
|
|
40
40
|
} catch (error) {
|
|
41
|
-
console.error(
|
|
41
|
+
console.error(source_default.red(`Error: ${error.message}`));
|
|
42
42
|
process.exit(1);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
@@ -46,7 +46,7 @@ program.command("watch").description("Watch for changes and regenerate automatic
|
|
|
46
46
|
try {
|
|
47
47
|
await watch(options);
|
|
48
48
|
} catch (error) {
|
|
49
|
-
console.error(
|
|
49
|
+
console.error(source_default.red(`Error: ${error.message}`));
|
|
50
50
|
process.exit(1);
|
|
51
51
|
}
|
|
52
52
|
});
|