Skip to content

Commit ed4cdf1

Browse files
Expose NoTTYReport and silent for use by amphtml (#127)
* Expose `NoTTYReport` and `silent` for use by `amphtml` * Pushed Changes from Github Actions Bot Co-authored-by: Kristofer Baxter <[email protected]>
1 parent 356ab0e commit ed4cdf1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ import { Context, FileModifier, SizeMap } from './validation/Condition';
2121
import compress, { CompressionItem, findItemsToCompress } from './compress';
2222
import { Report } from './log/report';
2323
export { Report } from './log/report';
24+
export { NoTTYReport } from './log/no-tty-report';
2425

2526
export async function report(
2627
configOrProjectPath: string,
2728
fileModifier: FileModifier,
2829
report?: typeof Report,
30+
silent?: boolean,
2931
): Promise<SizeMap> {
3032
let projectPath = '';
3133
let packagePath = '';
@@ -41,7 +43,7 @@ export async function report(
4143
projectPath,
4244
packagePath,
4345
packageContent: '',
44-
silent: true,
46+
silent: silent ?? true,
4547
originalPaths: new Map(),
4648
// Stores the result of compression <path, [...results]>
4749
compressed: new Map(),

0 commit comments

Comments
 (0)