@opencode/util 2.0.22 → 2.0.24

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.
Files changed (2) hide show
  1. package/dist/fs-util.js +3 -2
  2. package/package.json +1 -1
package/dist/fs-util.js CHANGED
@@ -7,6 +7,7 @@ import { Glob } from "./glob.js";
7
7
  import { serviceUse } from "./effect/service-use.js";
8
8
  import { makeGlobalNode } from "./effect/app-node.js";
9
9
  import { filesystem } from "./effect/app-node-platform.js";
10
+ import { sameDirectory } from "./path.js";
10
11
  export var FSUtil;
11
12
  (function (FSUtil) {
12
13
  class FileSystemError extends Schema.TaggedError()("FileSystemError", {
@@ -108,7 +109,7 @@ export var FSUtil;
108
109
  return result;
109
110
  }
110
111
  }
111
- if (options.stop === current)
112
+ if (options.stop && sameDirectory(options.stop, current))
112
113
  break;
113
114
  const parent = dirname(current);
114
115
  if (parent === current)
@@ -124,7 +125,7 @@ export var FSUtil;
124
125
  while (true) {
125
126
  const matches = yield* scan(pattern, { cwd: current, absolute: true, include: "file", dot: true }).pipe(Effect.orElseSucceed(() => []));
126
127
  result.push(...matches);
127
- if (stop === current)
128
+ if (stop && sameDirectory(stop, current))
128
129
  break;
129
130
  const parent = dirname(current);
130
131
  if (parent === current)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/util",
4
- "version": "2.0.22",
4
+ "version": "2.0.24",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {