@staff0rd/assist 0.64.1 → 0.64.2
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/index.js +2 -2
- package/package.json +1 -1
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.64.
|
|
9
|
+
version: "0.64.2",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -5309,7 +5309,7 @@ function isGitRepo(dir) {
|
|
|
5309
5309
|
function isGlobalNpmInstall(dir) {
|
|
5310
5310
|
try {
|
|
5311
5311
|
const globalPrefix = execSync24("npm prefix -g", { stdio: "pipe" }).toString().trim();
|
|
5312
|
-
return dir.startsWith(globalPrefix);
|
|
5312
|
+
return path30.resolve(dir).toLowerCase().startsWith(path30.resolve(globalPrefix).toLowerCase());
|
|
5313
5313
|
} catch {
|
|
5314
5314
|
return false;
|
|
5315
5315
|
}
|