feat(util): configure package publishing (#38129)
This commit is contained in:
parent
cf651bc41b
commit
69d7c2add7
35 changed files with 161 additions and 71 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue