You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(deps): replace chalk with native util.styleText (#3029)
Replace the `chalk` dependency with Node.js built-in `util.styleText`
across all three packages (core, orval, query). The `styleText` API is
stable in Node >=22.18.0 which is already the minimum engine version.
- Migrate all chalk color/style calls to styleText equivalents
- Use array syntax for chained styles (e.g. `['cyan', 'bold']`)
- Remove chalk from dependencies in all 3 package.json files
- Update yarn.lock accordingly
Closes#2982
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
`⚠️ ${chalk.yellow('package.json contains catalog: references, but no catalog source was found (checked: pnpm-workspace.yaml, package.json, .yarnrc.yml).')}`,
175
+
`⚠️ ${styleText('yellow','package.json contains catalog: references, but no catalog source was found (checked: pnpm-workspace.yaml, package.json, .yarnrc.yml).')}`,
`⚠️ ${chalk.yellow(`'${version}' substitution for the package '${packageName}' failed as there is no matching catalog named '${catalogName}'. (available named catalogs are: ${Object.keys(catalogData.catalogs??{}).join(', ')})`)}`,
213
+
`⚠️ ${styleText('yellow',`'${version}' substitution for the package '${packageName}' failed as there is no matching catalog named '${catalogName}'. (available named catalogs are: ${Object.keys(catalogData.catalogs??{}).join(', ')})`)}`,
210
214
);
211
215
continue;
212
216
}
213
217
constsub=catalog[packageName];
214
218
if(!sub){
215
219
log(
216
-
`⚠️ ${chalk.yellow(`'${version}' substitution for the package '${packageName}' failed as there is no package in the catalog named '${catalogName}'. (packages in the catalog are: ${Object.keys(catalog).join(', ')})`)}`,
220
+
`⚠️ ${styleText('yellow',`'${version}' substitution for the package '${packageName}' failed as there is no package in the catalog named '${catalogName}'. (packages in the catalog are: ${Object.keys(catalog).join(', ')})`)}`,
0 commit comments