@gluhar/cli 2.6.2 → 2.6.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gluhar/cli",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "Gluhar cli commands and scripts",
5
5
  "exports": {
6
6
  ".": "./src/index.ts",
@@ -44,5 +44,5 @@
44
44
  "tsconfig-paths": "^4.2.0",
45
45
  "typescript": "^5.5.4"
46
46
  },
47
- "gitHead": "1e98651c34c86a0714119f6f4dfb0429ddcfe628"
47
+ "gitHead": "5ee4fec77d5ac77a01d4320bf4981a16d16522f6"
48
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"preAction.d.ts","sourceRoot":"","sources":["../../src/preAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsEzC,eAAO,MAAM,SAAS,YAAmB,OAAO,aAAa,OAAO,kBAoBnE,CAAC"}
1
+ {"version":3,"file":"preAction.d.ts","sourceRoot":"","sources":["../../src/preAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuEzC,eAAO,MAAM,SAAS,YAAmB,OAAO,aAAa,OAAO,kBAoBnE,CAAC"}
package/src/preAction.js CHANGED
@@ -38,7 +38,8 @@ const logCli = (actionCmd) => {
38
38
  log.verbose("cwd:", process.cwd());
39
39
  };
40
40
  const checkCliVersion = async () => {
41
- if (git_1.git.getRepo() === "gluhar")
41
+ const hasGit = (0, cmd_1.getCmdOutput)("git rev-parse --is-inside-work-tree");
42
+ if (hasGit === "true" && git_1.git.getRepo() === "gluhar")
42
43
  return;
43
44
  const latestVersion = (0, cmd_1.getCmdOutput)("npm show @gluhar/cli version");
44
45
  // Version is up to date