feat(util): configure package publishing (#38129)

This commit is contained in:
Dax 2026-07-21 12:32:23 -04:00 committed by GitHub
commit 69d7c2add7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 161 additions and 71 deletions

View file

@ -1,8 +1,8 @@
import { Formatter, Logger, type LogLevel } from "effect"
import path from "path"
import { Global } from "../global"
import { InstallationChannel, InstallationLocal } from "../installation/version"
import { runID } from "./shared"
import { Global } from "../global.js"
import { InstallationChannel, InstallationLocal } from "../installation/version.js"
import { runID } from "./shared.js"
function formatter(id: string = runID) {
return Logger.map(Logger.formatStructured, (output) => {
@ -74,4 +74,4 @@ export function loggers() {
return process.env.OPENCODE_PRINT_LOGS === "1" ? [fileLogger(), stderrLogger] : [fileLogger()]
}
export * as Logging from "./logging"
export * as Logging from "./logging.js"

View file

@ -1,7 +1,7 @@
import { Layer } from "effect"
import { OtlpLogger } from "effect/unstable/observability"
import { InstallationChannel, InstallationVersion } from "../installation/version"
import { runID } from "./shared"
import { InstallationChannel, InstallationVersion } from "../installation/version.js"
import { runID } from "./shared.js"
export interface Options {
readonly endpoint?: string
@ -87,4 +87,4 @@ export async function tracingLayer(options?: Options) {
}))
}
export * as Otlp from "./otlp"
export * as Otlp from "./otlp.js"