Skip to content

Commit

Permalink
feat: force publish since semantic-release is stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
cenk1cenk2 committed Apr 11, 2023
1 parent a72cc7b commit fa0fae1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/process-output/process-output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { cleanseAnsi } from '@utils'
*/
export class ProcessOutput {
public readonly stream: ProcessOutputStreamMap
private active: boolean
protected active: boolean

constructor (stdout?: NodeJS.WriteStream, stderr?: NodeJS.WriteStream, private readonly options?: ProcessOutputOptions) {
this.stream = {
Expand Down Expand Up @@ -48,6 +48,9 @@ export class ProcessOutput {
}

public release (): void {
// not the most performant of functions, since creating a lots of memory
// maybe refactor this sometime, but shouldnt be concern since we do not expect
// huge number of outputs being buffered
const output = Object.entries(this.stream)
.map(([ name, stream ]) => ({ name, buffer: stream.release() }))
.filter((output) => this.options.dump.includes(output.name as keyof ProcessOutputStreamMap))
Expand Down

0 comments on commit fa0fae1

Please sign in to comment.