Skip to content

Commit b0dcf27

Browse files
committed
fix formatting on comparison message
1 parent 77b7e5f commit b0dcf27

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

scripts/compare-versions-warning.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ module.exports = function () {
1515
const remoteVersion = data["dist-tags"].latest;
1616
if (cv.compare(localVersion, remoteVersion, "<")) {
1717
console.warn(
18-
`You are using browserlist-config-baseline version: \t${localVersion} \n` +
19-
`The latest available version is: \t\t\t${remoteVersion} \n` +
20-
"You may be using stale data. Please update browserslist-config-baseline \n" +
21-
"to ensure your config is accurate. \n\n" +
22-
" # If using npm, please run: \n" +
23-
" npm i browserslist-config-baseline@latest \n\n" +
24-
" # If using yarn, please run: \n" +
25-
" yarn upgrade --latest browserslist-config-baseline \n\n" +
26-
" # If using bun, please run: \n" +
27-
" bun update browserslist-config-baseline@latest \n\n" +
28-
"Consider adding whichever command is appropriate to your " +
29-
"build scripts to avoid seeing this message in future.",
18+
`\nYou are using browserlist-config-baseline version: ${localVersion}\n` +
19+
`The latest available version is: ${remoteVersion}\n` +
20+
"You may be using stale data. Please update browserslist-config-baseline\n" +
21+
"to ensure your config is accurate.\n\n" +
22+
" # If using npm, please run:\n" +
23+
" npm i browserslist-config-baseline@latest\n\n" +
24+
" # If using yarn, please run:\n" +
25+
" yarn upgrade --latest browserslist-config-baseline\n\n" +
26+
" # If using bun, please run:\n" +
27+
" bun update browserslist-config-baseline@latest\n\n" +
28+
"Consider adding whichever command is appropriate to your\n" +
29+
"build scripts to avoid seeing this message in future.\n",
3030
);
3131
}
3232
})

0 commit comments

Comments
 (0)