@larkup/cli 0.2.26 → 0.2.27

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ import { Command } from "commander";
35
35
  // package.json
36
36
  var package_default = {
37
37
  name: "@larkup/cli",
38
- version: "0.2.26",
38
+ version: "0.2.27",
39
39
  engines: {
40
40
  node: ">=22"
41
41
  },
@@ -7000,12 +7000,14 @@ program.command("enterprise-enroll").description("Apply a one-time Enterprise in
7000
7000
  program.command("enterprise-tool install <toolId>").description("Install an Enterprise private tool you were given access to").option("--api-key <key>", "Customer API key required by this private tool").action(async (toolId, options) => {
7001
7001
  await enterpriseToolInstallCommand(toolId, options);
7002
7002
  });
7003
- if (process.argv[2] !== "update") {
7004
- await checkUpdate();
7005
- if (await enterpriseUpdateAvailable()) {
7003
+ var shouldCheckForUpdates = process.argv[2] !== "update" && !process.argv.includes("--help") && !process.argv.includes("-h") && !process.argv.includes("--version") && !process.argv.includes("-V");
7004
+ if (shouldCheckForUpdates) {
7005
+ void checkUpdate();
7006
+ void enterpriseUpdateAvailable().then((available) => {
7007
+ if (!available) return;
7006
7008
  log.warn("Your organization configuration has changed.");
7007
7009
  log.info(`Run: ${log.fmt.bold("larkup update --ee")}`);
7008
- }
7010
+ });
7009
7011
  }
7010
7012
  try {
7011
7013
  await program.parseAsync(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/cli",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },