@rigour-labs/cli 2.21.1 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -107,7 +107,9 @@ program
|
|
|
107
107
|
(async () => {
|
|
108
108
|
try {
|
|
109
109
|
const updateInfo = await checkForUpdates(CLI_VERSION);
|
|
110
|
-
|
|
110
|
+
// Suppress update message in JSON/CI mode to keep stdout clean
|
|
111
|
+
const isSilent = process.argv.includes('--json') || process.argv.includes('--ci');
|
|
112
|
+
if (updateInfo?.hasUpdate && !isSilent) {
|
|
111
113
|
console.log(chalk.yellow(`\n⚡ Update available: ${updateInfo.currentVersion} → ${updateInfo.latestVersion}`));
|
|
112
114
|
console.log(chalk.dim(` Run: npx @rigour-labs/cli@latest init --force\n`));
|
|
113
115
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigour-labs/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"rigour": "dist/cli.js"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"inquirer": "9.2.16",
|
|
29
29
|
"ora": "^8.0.1",
|
|
30
30
|
"yaml": "^2.8.2",
|
|
31
|
-
"@rigour-labs/core": "2.
|
|
31
|
+
"@rigour-labs/core": "2.22.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/fs-extra": "^11.0.4",
|