@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.
- package/claude/settings.json +1 -0
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/claude/settings.json
CHANGED
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.
|
|
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
|
|
7066
|
+
return resolved.toLowerCase().startsWith(path34.resolve(globalPrefix).toLowerCase());
|
|
7063
7067
|
} catch {
|
|
7064
7068
|
return false;
|
|
7065
7069
|
}
|