Skip to content

Commit

Permalink
fix: replaces '√' back with '✔' as the 'tick' or 'ok' symbol
Browse files Browse the repository at this point in the history
√ is apparently supported on more terminals, but ✔ looks a lot nicer on terminals (likely most) that _do_ support it it, so for now going with that
  • Loading branch information
sverweij committed Jun 29, 2024
1 parent eac0d63 commit 7751452
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"test:u": "LANG=en_US.UTF-8 NODE_OPTIONS=--no-warnings mocha --grep \"^\\[[U]\\]\"",
"test:e": "LANG=en_US.UTF-8 NODE_OPTIONS=--no-warnings mocha --grep \"^\\[[E]\\]\"",
"test:cover": "LANG=en_US.UTF-8 NODE_OPTIONS=--no-warnings c8 mocha",
"test:glob": "set -f && test \"`bin/dependency-cruise.mjs --no-config test/extract/__mocks__/gather-globbing/packages/**/src/**/*.js | grep \"no dependency violations found\"`\" = \" no dependency violations found (6 modules, 0 dependencies cruised)\"",
"test:glob": "set -f && test \"`bin/dependency-cruise.mjs --no-config test/extract/__mocks__/gather-globbing/packages/**/src/**/*.js | grep \"no dependency violations found\"`\" = \" no dependency violations found (6 modules, 0 dependencies cruised)\"",
"test:load": "hyperfine --warmup 3 --runs 30 \"bin/dependency-cruise.mjs src bin test configs types tools --ignore-known --no-cache --no-progress\"",
"test:load:short": "hyperfine --warmup 1 --runs 5 \"bin/dependency-cruise.mjs src bin test configs types tools --ignore-known --no-cache --no-progress\"",
"test:load:cached": "hyperfine --warmup 3 --runs 30 \"bin/dependency-cruise.mjs src bin test configs types tools --ignore-known --cache node_modules/.cache/dependency-cruiser/load-cached --no-progress\"",
Expand Down
2 changes: 1 addition & 1 deletion src/cli/format-meta-info.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import chalk from "chalk";
import { getAvailableTranspilers, allExtensions } from "#main/index.mjs";

function bool2Symbol(pBool) {
return pBool ? chalk.green("") : chalk.red("x");
return pBool ? chalk.green("") : chalk.red("x");
}

function formatTranspilers() {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/init-config/write-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function writeConfig(
try {
writeFileSync(pFileName, pConfig);
pOutStream.write(
`\n ${chalk.green("")} Successfully created '${pFileName}'\n\n`,
`\n ${chalk.green("")} Successfully created '${pFileName}'\n\n`,
);
/* c8 ignore start */
} catch (pError) {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/init-config/write-run-scripts-to-manifest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function getSuccessMessage(pDestinationManifestFileName) {
`\n${pScript.description}\n\n`
}`;
},
` ${chalk.green("")} Run scripts added to '${pDestinationManifestFileName}':\n`,
` ${chalk.green("")} Run scripts added to '${pDestinationManifestFileName}':\n`,
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/report/error.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function report(pResults, pLong) {
);

if (lNonIgnorableViolations.length === 0) {
return `${EOL}${chalk.green("")} no dependency violations found (${
return `${EOL}${chalk.green("")} no dependency violations found (${
pResults.summary.totalCruised
} modules, ${
pResults.summary.totalDependenciesCruised
Expand Down

0 comments on commit 7751452

Please sign in to comment.