Merge pull request #8564 from uinstinct/cli-skip-update-dev
feat(cli): skip checking for updates in dev mode
This commit is contained in:
commit
bbd7e6f331
1 changed files with 9 additions and 10 deletions
|
|
@ -50,6 +50,15 @@ export class UpdateService extends BaseService<UpdateServiceState> {
|
|||
});
|
||||
|
||||
try {
|
||||
// skip checking for updates in dev
|
||||
if (this.currentState.currentVersion === "0.0.0-dev") {
|
||||
this.setState({
|
||||
status: UpdateStatus.IDLE,
|
||||
message: `Continue CLI`,
|
||||
});
|
||||
return; // Uncomment to test auto-update behavior in dev
|
||||
}
|
||||
|
||||
// Check for updates
|
||||
this.setState({
|
||||
status: UpdateStatus.CHECKING,
|
||||
|
|
@ -79,16 +88,6 @@ export class UpdateService extends BaseService<UpdateServiceState> {
|
|||
isUpdateAvailable,
|
||||
});
|
||||
|
||||
if (this.currentState.currentVersion === "0.0.0-dev") {
|
||||
this.setState({
|
||||
status: UpdateStatus.IDLE,
|
||||
message: `Continue CLI`,
|
||||
isUpdateAvailable,
|
||||
latestVersion,
|
||||
});
|
||||
return; // Uncomment to test auto-update behavior in dev
|
||||
}
|
||||
|
||||
// If update is available, automatically update
|
||||
if (
|
||||
autoUpdate &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue