mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-15 19:03:25 +00:00
chore: generate
This commit is contained in:
parent
9769e7012c
commit
b990f9a5c1
5 changed files with 8 additions and 23 deletions
|
|
@ -19,15 +19,7 @@ const result = await Bun.build({
|
|||
target: "node",
|
||||
format: "esm",
|
||||
packages: "external",
|
||||
external: [
|
||||
"#sqlite",
|
||||
"#pty",
|
||||
"#fff",
|
||||
"#photon-wasm",
|
||||
"#shell-parser-wasm",
|
||||
"#process-lock-ffi",
|
||||
"#v1-migration",
|
||||
],
|
||||
external: ["#sqlite", "#pty", "#fff", "#photon-wasm", "#shell-parser-wasm", "#process-lock-ffi", "#v1-migration"],
|
||||
splitting: true,
|
||||
loader: {
|
||||
".txt": "text",
|
||||
|
|
|
|||
|
|
@ -27,11 +27,10 @@ try {
|
|||
await $`bun run typecheck`
|
||||
await $`bun run build`
|
||||
pkg.exports = Object.fromEntries(
|
||||
Object.entries(pkg.exports)
|
||||
.map(([key, value]) => {
|
||||
if (typeof value !== "string") return [key, value]
|
||||
return [key, { import: output(value), types: output(value, true) }]
|
||||
}),
|
||||
Object.entries(pkg.exports).map(([key, value]) => {
|
||||
if (typeof value !== "string") return [key, value]
|
||||
return [key, { import: output(value), types: output(value, true) }]
|
||||
}),
|
||||
)
|
||||
pkg.imports = Object.fromEntries(
|
||||
Object.entries(pkg.imports).map(([key, conditions]) => [
|
||||
|
|
|
|||
|
|
@ -99,7 +99,5 @@ const clientLayer = (config: Config) => Layer.effect(SqlClient.SqlClient, make(c
|
|||
|
||||
export const sqliteLayer = (config: Config) => {
|
||||
const native = nativeLayer(config)
|
||||
return Layer.merge(native, clientLayer(config).pipe(Layer.provide(native))).pipe(
|
||||
Layer.provide(Reactivity.layer),
|
||||
)
|
||||
return Layer.merge(native, clientLayer(config).pipe(Layer.provide(native))).pipe(Layer.provide(Reactivity.layer))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,5 @@ const clientLayer = (config: Config) => Layer.effect(SqlClient.SqlClient, make(c
|
|||
|
||||
export const sqliteLayer = (config: Config) => {
|
||||
const native = nativeLayer(config)
|
||||
return Layer.merge(native, clientLayer(config).pipe(Layer.provide(native))).pipe(
|
||||
Layer.provide(Reactivity.layer),
|
||||
)
|
||||
return Layer.merge(native, clientLayer(config).pipe(Layer.provide(native))).pipe(Layer.provide(Reactivity.layer))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -239,7 +239,5 @@ const clientLayer = (config: Config) => Layer.effect(SqlClient.SqlClient, make(c
|
|||
|
||||
export const sqliteLayer = (config: Config) => {
|
||||
const native = nativeLayer(config)
|
||||
return Layer.merge(native, clientLayer(config).pipe(Layer.provide(native))).pipe(
|
||||
Layer.provide(Reactivity.layer),
|
||||
)
|
||||
return Layer.merge(native, clientLayer(config).pipe(Layer.provide(native))).pipe(Layer.provide(Reactivity.layer))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue