@xano/cli 0.0.80-beta.1 → 0.0.81
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/base-command.d.ts +1 -1
- package/dist/commands/update/index.js +2 -0
- package/oclif.manifest.json +1629 -1629
- package/package.json +1 -1
package/dist/base-command.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export default abstract class BaseCommand extends Command {
|
|
|
23
23
|
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
24
|
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
protected updateNotice: string | null;
|
|
27
27
|
init(): Promise<void>;
|
|
28
28
|
finally(_: Error | undefined): Promise<void>;
|
|
29
29
|
private isJsonOutput;
|
|
@@ -17,6 +17,7 @@ export default class Update extends BaseCommand {
|
|
|
17
17
|
async run() {
|
|
18
18
|
const { flags } = await this.parse(Update);
|
|
19
19
|
const currentVersion = this.config.version;
|
|
20
|
+
this.updateNotice = null;
|
|
20
21
|
this.log(`Current version: ${currentVersion}`);
|
|
21
22
|
this.log('Checking for updates...');
|
|
22
23
|
const tag = flags.beta ? 'beta' : 'latest';
|
|
@@ -24,6 +25,7 @@ export default class Update extends BaseCommand {
|
|
|
24
25
|
const latest = execSync(`npm view @xano/cli dist-tags.${tag}`, { encoding: 'utf8' }).trim();
|
|
25
26
|
if (latest === currentVersion) {
|
|
26
27
|
this.log(`Already up to date (${currentVersion})`);
|
|
28
|
+
clearUpdateCache();
|
|
27
29
|
return;
|
|
28
30
|
}
|
|
29
31
|
if (flags.check) {
|