@rokkit/cli 1.4.1 → 1.4.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/package.json +6 -5
- package/src/convert.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokkit/cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Command line utilities for icon bundling and conversion.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,20 +16,21 @@
|
|
|
16
16
|
"prepublishOnly": "cp ../../LICENSE . && bun clean && bun tsc --project tsconfig.build.json",
|
|
17
17
|
"postpublish": "rm -f LICENSE",
|
|
18
18
|
"clean": "rm -rf dist",
|
|
19
|
-
"build": "bun prepublishOnly"
|
|
19
|
+
"build": "bun prepublishOnly",
|
|
20
|
+
"check:build": "bun run clean && tsc --project tsconfig.build.json"
|
|
20
21
|
},
|
|
21
22
|
"publishConfig": {
|
|
22
23
|
"access": "public"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"iconify": "^1.4.0",
|
|
26
|
-
"vitest": "^4.
|
|
27
|
+
"vitest": "^4.1.11"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"@mdi/svg": "^7.4.47",
|
|
30
|
-
"@rokkit/unocss": "1.4.
|
|
31
|
+
"@rokkit/unocss": "1.4.2",
|
|
31
32
|
"sade": "^1.8.1",
|
|
32
|
-
"@iconify/tools": "5.0.
|
|
33
|
+
"@iconify/tools": "^5.0.14",
|
|
33
34
|
"@iconify/types": "^2.0.0",
|
|
34
35
|
"prompts": "^2.4.2",
|
|
35
36
|
"ramda": "^0.32.0"
|
package/src/convert.js
CHANGED
|
@@ -47,12 +47,14 @@ export function processIcons(iconSet, color) {
|
|
|
47
47
|
try {
|
|
48
48
|
cleanAndOptimizeIcon(svg, color)
|
|
49
49
|
} catch (err) {
|
|
50
|
-
/* v8 ignore
|
|
50
|
+
/* v8 ignore start -- catch body requires an iconify-tools internal parse
|
|
51
51
|
error; the err1 fixture exercises this path but the exception propagates
|
|
52
|
-
at importDirectory level before processIcons is reached
|
|
52
|
+
at importDirectory level before processIcons is reached. Uses start/stop
|
|
53
|
+
because `ignore next N` no longer fires under vitest 4's AST remapping. */
|
|
53
54
|
console.error(`Error parsing ${name}: ${err.reason}`)
|
|
54
55
|
iconSet.remove(name)
|
|
55
56
|
return
|
|
57
|
+
/* v8 ignore stop */
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
iconSet.fromSVG(name, svg)
|