forked from olcxjas-softworks/LarpixClient
fix gitignore again
This commit is contained in:
parent
ce5a1e330b
commit
5da5c2afe2
3329 changed files with 364540 additions and 3 deletions
22
electron/node_modules/roarr/dist/factories/createNodeWriter.js.flow
generated
vendored
Normal file
22
electron/node_modules/roarr/dist/factories/createNodeWriter.js.flow
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// @flow
|
||||
|
||||
import type {
|
||||
WriterType,
|
||||
} from '../types';
|
||||
|
||||
const createBlockingWriter = (stream: stream$Writable): WriterType => {
|
||||
return {
|
||||
write: (message: string) => {
|
||||
stream.write(message + '\n');
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export default (): WriterType => {
|
||||
// eslint-disable-next-line no-process-env
|
||||
const targetStream = (process.env.ROARR_STREAM || 'STDOUT').toUpperCase();
|
||||
|
||||
const stream = targetStream.toUpperCase() === 'STDOUT' ? process.stdout : process.stderr;
|
||||
|
||||
return createBlockingWriter(stream);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue