Commit e490937
committed
refactor(scripts): use logger methods instead of manual emoji formatting
Replace manual emoji formatting with proper logger methods for consistent
output and better compatibility across terminals.
Changes:
- scripts/publish.mjs: Use logger.success() instead of logger.log with ✓ emoji
- packages/cli/scripts/build.mjs: Use logger methods (info, step, success, error)
instead of manual emoji prefixes
Benefits:
- Consistent with @socketsecurity/lib/logger API
- Automatic color coding and symbol selection
- Unicode/ASCII fallback handled automatically
- Proper line break management with logger.log() calls
- Matches spinner API consistency
The logger provides:
- logger.success() - green ✔
- logger.error() - red ✖
- logger.warn() - yellow ⚠
- logger.info() - blue ℹ
- logger.step() - for build steps
- logger.substep() - for sub-steps1 parent 475412d commit e490937
2 files changed
+25
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
27 | 44 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 45 | | |
34 | 46 | | |
35 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
0 commit comments