@triflux/core 10.77.0 → 10.78.0
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
|
@@ -112,12 +112,12 @@ function trustedPackageTree(packageRoot, nodePath, tmuxPath) {
|
|
|
112
112
|
!existing(resolvedNode)?.isFile()
|
|
113
113
|
)
|
|
114
114
|
return false;
|
|
115
|
+
// Homebrew prefix는 git 저장소일 수 있으므로 node_modules까지만 검사한다.
|
|
115
116
|
let ancestor = packageRoot;
|
|
116
117
|
while (true) {
|
|
117
118
|
if (existing(path.join(ancestor, ".git"))) return false;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
ancestor = parent;
|
|
119
|
+
if (ancestor === path.dirname(packageRoot)) break;
|
|
120
|
+
ancestor = path.dirname(ancestor);
|
|
121
121
|
}
|
|
122
122
|
const stack = [packageRoot];
|
|
123
123
|
while (stack.length) {
|