Commit ca587e4
committed
fix(scripts): remove duplicate colors declaration in pre-publish-validate
The colors variable was both imported from yoctocolors-cjs and
redeclared as a manual ANSI codes object, causing a SyntaxError
at runtime.
Updated all color helper functions to use the imported yoctocolors-cjs
methods instead of manual ANSI escape codes.1 parent 10a6a0e commit ca587e4
1 file changed
+4
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 14 | | |
26 | 15 | | |
27 | 16 | | |
28 | 17 | | |
29 | | - | |
| 18 | + | |
30 | 19 | | |
31 | 20 | | |
32 | 21 | | |
33 | 22 | | |
34 | 23 | | |
35 | 24 | | |
36 | | - | |
| 25 | + | |
37 | 26 | | |
38 | 27 | | |
39 | 28 | | |
40 | 29 | | |
41 | 30 | | |
42 | 31 | | |
43 | | - | |
| 32 | + | |
44 | 33 | | |
45 | 34 | | |
46 | 35 | | |
47 | 36 | | |
48 | 37 | | |
49 | 38 | | |
50 | | - | |
| 39 | + | |
51 | 40 | | |
52 | 41 | | |
53 | 42 | | |
| |||
0 commit comments