refactor(schema): extract shared public schemas (#33571)

This commit is contained in:
Kit Langton
2026-06-24 04:31:06 +02:00
committed by GitHub
parent 60aba622ab
commit 516cfe4e09
130 changed files with 2004 additions and 1583 deletions
+8 -9
View File
@@ -176,12 +176,11 @@ export const layer = Layer.effect(
),
}).pipe(
Effect.map((result) =>
result.items.map(
(relative) =>
new Entry({
path: RelativePath.make(relative),
type: "file",
}),
result.items.map((relative) =>
Entry.make({
path: RelativePath.make(relative),
type: "file",
}),
),
),
Effect.catchTag("Ripgrep.InvalidPatternError", (cause) => Effect.fail(failure(cause.message, cause))),
@@ -206,7 +205,7 @@ export const layer = Layer.effect(
.replace(/^[\\/]+/u, "")
.replaceAll("\\", "/")
return Effect.succeed(
new Entry({
Entry.make({
path: RelativePath.make(relative),
type: "file",
}),
@@ -259,8 +258,8 @@ export const layer = Layer.effect(
.replace(/^(?:\.[\\/])+/u, "")
.replace(/^[\\/]+/u, "")
.replaceAll("\\", "/")
return new Match({
entry: new Entry({
return Match.make({
entry: Entry.make({
path: RelativePath.make(relative),
type: "file",
}),