@opencode-ai/util 0.0.0-dev-17853 → 0.0.0-dev-17860
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/fs-util.js +1 -1
- package/dist/npm.js +1 -1
- package/package.json +1 -1
package/dist/fs-util.js
CHANGED
|
@@ -118,7 +118,7 @@ export var FSUtil;
|
|
|
118
118
|
const result = [];
|
|
119
119
|
let current = start;
|
|
120
120
|
while (true) {
|
|
121
|
-
const matches = yield* scan(pattern, { cwd: current, absolute: true, include: "file", dot: true }).pipe(Effect.
|
|
121
|
+
const matches = yield* scan(pattern, { cwd: current, absolute: true, include: "file", dot: true }).pipe(Effect.orElseSucceed(() => []));
|
|
122
122
|
result.push(...matches);
|
|
123
123
|
if (stop === current)
|
|
124
124
|
break;
|
package/dist/npm.js
CHANGED
|
@@ -129,7 +129,7 @@ const layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
129
129
|
const dir = directory(pkg);
|
|
130
130
|
const binDir = path.join(dir, "node_modules", ".bin");
|
|
131
131
|
const pick = Effect.fnUntraced(function* () {
|
|
132
|
-
const files = yield* fs.readDirectory(binDir).pipe(Effect.
|
|
132
|
+
const files = yield* fs.readDirectory(binDir).pipe(Effect.orElseSucceed(() => []));
|
|
133
133
|
if (files.length === 0)
|
|
134
134
|
return Option.none();
|
|
135
135
|
// Caller picked a specific bin (e.g. pyright exposes both `pyright` and
|