@atlaspack/reporter-cli 2.17.3-typescript-b27501580.0 → 2.17.3-typescript-5b4d3ad41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ import type { ReporterEvent, PluginOptions } from '@atlaspack/types';
2
+ import { Reporter } from '@atlaspack/plugin';
3
+ export declare function _report(event: ReporterEvent, options: PluginOptions): Promise<void>;
4
+ declare const _default: Reporter;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { BundleGraph, FilePath, PackagedBundle } from '@atlaspack/types';
2
+ import type { FileSystem } from '@atlaspack/fs';
3
+ export default function bundleReport(bundleGraph: BundleGraph<PackagedBundle>, fs: FileSystem, projectRoot: FilePath, assetCount?: number): Promise<void>;
package/lib/emoji.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export declare const progress: string;
2
+ export declare const success: string;
3
+ export declare const error: string;
4
+ export declare const warning: string;
5
+ export declare const info: string;
6
+ export declare const hint: string;
7
+ export declare const docs: string;
@@ -0,0 +1,10 @@
1
+ declare const logLevels: {
2
+ readonly none: 0;
3
+ readonly error: 1;
4
+ readonly warn: 2;
5
+ readonly info: 3;
6
+ readonly progress: 3;
7
+ readonly success: 3;
8
+ readonly verbose: 4;
9
+ };
10
+ export default logLevels;
@@ -0,0 +1,3 @@
1
+ export default function phaseReport(phaseStartTimes: {
2
+ [key: string]: number;
3
+ }): void;
@@ -0,0 +1,14 @@
1
+ import type { Writable } from 'stream';
2
+ import type { PadAlign } from './utils';
3
+ type ColumnType = {
4
+ align: PadAlign;
5
+ };
6
+ export declare const isTTY: any | boolean | true;
7
+ export declare function _setStdio(stdoutLike: Writable, stderrLike: Writable): void;
8
+ export declare function writeOut(message: string, isError?: boolean): void;
9
+ export declare function persistMessage(message: string): void;
10
+ export declare function updateSpinner(message: string): void;
11
+ export declare function persistSpinner(name: string, status: 'success' | 'error', message: string): void;
12
+ export declare function resetWindow(): void;
13
+ export declare function table(columns: Array<ColumnType>, table: Array<Array<string>>): void;
14
+ export {};
package/lib/utils.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export type PadAlign = 'left' | 'right';
2
+ export declare function getTerminalWidth(): any;
3
+ export declare function pad(text: string, length: number, align?: PadAlign): string;
4
+ export declare function formatFilename(filename: string, color?: (s: string) => string): string;
5
+ export declare function countLines(message: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/reporter-cli",
3
- "version": "2.17.3-typescript-b27501580.0",
3
+ "version": "2.17.3-typescript-5b4d3ad41.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,9 +27,9 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "@atlaspack/plugin": "2.14.21-typescript-b27501580.0",
31
- "@atlaspack/types": "2.15.11-typescript-b27501580.0",
32
- "@atlaspack/utils": "2.17.3-typescript-b27501580.0",
30
+ "@atlaspack/plugin": "2.14.21-typescript-5b4d3ad41.0",
31
+ "@atlaspack/types": "2.15.11-typescript-5b4d3ad41.0",
32
+ "@atlaspack/utils": "2.17.3-typescript-5b4d3ad41.0",
33
33
  "chalk": "^4.1.0",
34
34
  "filesize": "^6.1.0",
35
35
  "nullthrows": "^1.1.1",
@@ -39,11 +39,11 @@
39
39
  "wrap-ansi": "^7.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@atlaspack/feature-flags": "2.19.3-typescript-b27501580.0"
42
+ "@atlaspack/feature-flags": "2.19.3-typescript-5b4d3ad41.0"
43
43
  },
44
44
  "type": "commonjs",
45
45
  "scripts": {
46
46
  "check-ts": "tsc --emitDeclarationOnly --rootDir src"
47
47
  },
48
- "gitHead": "b275015805a058452afb6fb48c078ecd4de925f2"
48
+ "gitHead": "5b4d3ad41ffa002b989ba77271bb3010a1f05b2a"
49
49
  }