@staff0rd/assist 0.102.0 → 0.102.1

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.
@@ -52,6 +52,7 @@
52
52
  "Bash(echo:*)",
53
53
  "Bash(printf:*)",
54
54
  "Bash(date:*)",
55
+ "Bash(jq:*)",
55
56
  "SlashCommand(/next-backlog-item)",
56
57
  "SlashCommand(/verify)",
57
58
  "SlashCommand(/commit)",
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.102.0",
9
+ version: "0.102.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -7058,8 +7058,12 @@ import { execSync as execSync29 } from "child_process";
7058
7058
  import * as path34 from "path";
7059
7059
  function isGlobalNpmInstall(dir) {
7060
7060
  try {
7061
+ const resolved = path34.resolve(dir);
7062
+ if (resolved.split(path34.sep).includes("node_modules")) {
7063
+ return true;
7064
+ }
7061
7065
  const globalPrefix = execSync29("npm prefix -g", { stdio: "pipe" }).toString().trim();
7062
- return path34.resolve(dir).toLowerCase().startsWith(path34.resolve(globalPrefix).toLowerCase());
7066
+ return resolved.toLowerCase().startsWith(path34.resolve(globalPrefix).toLowerCase());
7063
7067
  } catch {
7064
7068
  return false;
7065
7069
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.102.0",
3
+ "version": "0.102.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {