@pnpm/cli.default-reporter 1100.3.12 → 1100.3.14
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.
- package/CHANGELOG.md +24 -0
- package/lib/ReporterPnpmConfig.d.ts +23 -0
- package/lib/ReporterPnpmConfig.js +2 -0
- package/lib/index.d.ts +3 -3
- package/lib/reportError.d.ts +2 -2
- package/lib/reporterForClient/index.d.ts +3 -3
- package/lib/reporterForClient/reportIgnoredBuilds.d.ts +2 -2
- package/lib/reporterForClient/reportMisc.d.ts +2 -2
- package/lib/reporterForClient/reportSummary.d.ts +2 -2
- package/package.json +12 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @pnpm/default-reporter
|
|
2
2
|
|
|
3
|
+
## 1100.3.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The default reporter no longer depends on `@pnpm/config.reader` at runtime: it declares its own minimal `ReporterPnpmConfig` type for the config fields it reads. Hosts that embed the reporter no longer pull in the config-reader dependency tree.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- @pnpm/cli.meta@1100.0.13
|
|
11
|
+
- @pnpm/core-loggers@1100.3.1
|
|
12
|
+
- @pnpm/deps.inspection.peers-issues-renderer@1100.0.11
|
|
13
|
+
- @pnpm/types@1101.8.0
|
|
14
|
+
|
|
15
|
+
## 1100.3.13
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies:
|
|
20
|
+
- @pnpm/cli.meta@1100.0.12
|
|
21
|
+
- @pnpm/config.reader@1101.15.0
|
|
22
|
+
- @pnpm/core-loggers@1100.3.0
|
|
23
|
+
- @pnpm/deps.inspection.peers-issues-renderer@1100.0.10
|
|
24
|
+
- @pnpm/installing.dedupe.issues-renderer@1100.0.3
|
|
25
|
+
- @pnpm/types@1101.7.0
|
|
26
|
+
|
|
3
27
|
## 1100.3.12
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as logs from '@pnpm/core-loggers';
|
|
2
|
+
/**
|
|
3
|
+
* The slice of pnpm's resolved config the reporter reads. Structural on
|
|
4
|
+
* purpose: the pnpm CLI passes its full `Config`, while other hosts (for
|
|
5
|
+
* example Bit, which drives the engine through `@pnpm/napi`) can pass just
|
|
6
|
+
* the fields they have without depending on `@pnpm/config.reader`.
|
|
7
|
+
*/
|
|
8
|
+
export interface ReporterPnpmConfig {
|
|
9
|
+
dir?: string;
|
|
10
|
+
workspaceDir?: string;
|
|
11
|
+
global?: boolean;
|
|
12
|
+
recursive?: boolean;
|
|
13
|
+
production?: boolean;
|
|
14
|
+
dev?: boolean;
|
|
15
|
+
optional?: boolean;
|
|
16
|
+
saveDev?: boolean;
|
|
17
|
+
strictDepBuilds?: boolean;
|
|
18
|
+
authConfig?: Record<string, string>;
|
|
19
|
+
cliOptions?: Record<string, unknown>;
|
|
20
|
+
hooks?: {
|
|
21
|
+
filterLog?: Array<(log: logs.Log) => boolean>;
|
|
22
|
+
};
|
|
23
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Config, ConfigContext } from '@pnpm/config.reader';
|
|
2
1
|
import type * as logs from '@pnpm/core-loggers';
|
|
3
2
|
import type { LogLevel, StreamParser } from '@pnpm/logger';
|
|
4
3
|
import * as Rx from 'rxjs';
|
|
5
4
|
import type { FilterPkgsDiff } from './reporterForClient/reportSummary.js';
|
|
6
5
|
import { formatWarn } from './reporterForClient/utils/formatWarn.js';
|
|
6
|
+
import type { ReporterPnpmConfig } from './ReporterPnpmConfig.js';
|
|
7
7
|
export { formatWarn };
|
|
8
8
|
export declare function initDefaultReporter(opts: {
|
|
9
9
|
useStderr?: boolean;
|
|
@@ -23,7 +23,7 @@ export declare function initDefaultReporter(opts: {
|
|
|
23
23
|
};
|
|
24
24
|
context: {
|
|
25
25
|
argv: string[];
|
|
26
|
-
config?:
|
|
26
|
+
config?: ReporterPnpmConfig;
|
|
27
27
|
env?: NodeJS.ProcessEnv;
|
|
28
28
|
process?: NodeJS.Process;
|
|
29
29
|
};
|
|
@@ -46,7 +46,7 @@ export declare function toOutput$(opts: {
|
|
|
46
46
|
};
|
|
47
47
|
context: {
|
|
48
48
|
argv: string[];
|
|
49
|
-
config?:
|
|
49
|
+
config?: ReporterPnpmConfig;
|
|
50
50
|
env?: NodeJS.ProcessEnv;
|
|
51
51
|
process?: NodeJS.Process;
|
|
52
52
|
};
|
package/lib/reportError.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Config } from '@pnpm/config.reader';
|
|
2
1
|
import type { Log } from '@pnpm/core-loggers';
|
|
3
|
-
|
|
2
|
+
import type { ReporterPnpmConfig } from './ReporterPnpmConfig.js';
|
|
3
|
+
export declare function reportError(logObj: Log, config?: ReporterPnpmConfig): string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Config, ConfigContext } from '@pnpm/config.reader';
|
|
2
1
|
import type * as logs from '@pnpm/core-loggers';
|
|
3
2
|
import type { LogLevel } from '@pnpm/logger';
|
|
4
3
|
import type * as Rx from 'rxjs';
|
|
4
|
+
import type { ReporterPnpmConfig } from '../ReporterPnpmConfig.js';
|
|
5
5
|
import { type FilterPkgsDiff } from './reportSummary.js';
|
|
6
6
|
export declare function reporterForClient(log$: {
|
|
7
7
|
context: Rx.Observable<logs.ContextLog>;
|
|
@@ -32,13 +32,13 @@ export declare function reporterForClient(log$: {
|
|
|
32
32
|
}, opts: {
|
|
33
33
|
appendOnly?: boolean;
|
|
34
34
|
cmd: string;
|
|
35
|
-
config?:
|
|
35
|
+
config?: ReporterPnpmConfig;
|
|
36
36
|
env: NodeJS.ProcessEnv;
|
|
37
37
|
filterPkgsDiff?: FilterPkgsDiff;
|
|
38
38
|
process: NodeJS.Process;
|
|
39
39
|
isRecursive: boolean;
|
|
40
40
|
logLevel?: LogLevel;
|
|
41
|
-
pnpmConfig?:
|
|
41
|
+
pnpmConfig?: ReporterPnpmConfig;
|
|
42
42
|
streamLifecycleOutput?: boolean;
|
|
43
43
|
aggregateOutput?: boolean;
|
|
44
44
|
throttleProgress?: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Config, ConfigContext } from '@pnpm/config.reader';
|
|
2
1
|
import type { IgnoredScriptsLog } from '@pnpm/core-loggers';
|
|
3
2
|
import * as Rx from 'rxjs';
|
|
3
|
+
import type { ReporterPnpmConfig } from '../ReporterPnpmConfig.js';
|
|
4
4
|
export declare function reportIgnoredBuilds(log$: {
|
|
5
5
|
ignoredScripts: Rx.Observable<IgnoredScriptsLog>;
|
|
6
6
|
}, opts: {
|
|
7
|
-
pnpmConfig?:
|
|
7
|
+
pnpmConfig?: ReporterPnpmConfig;
|
|
8
8
|
approveBuildsInstructionText?: string;
|
|
9
9
|
}): Rx.Observable<Rx.Observable<{
|
|
10
10
|
msg: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Config } from '@pnpm/config.reader';
|
|
2
1
|
import type { Log, RegistryLog } from '@pnpm/core-loggers';
|
|
3
2
|
import type { LogLevel } from '@pnpm/logger';
|
|
4
3
|
import * as Rx from 'rxjs';
|
|
4
|
+
import type { ReporterPnpmConfig } from '../ReporterPnpmConfig.js';
|
|
5
5
|
export declare const LOG_LEVEL_NUMBER: Record<LogLevel, number>;
|
|
6
6
|
export declare function reportMisc(log$: {
|
|
7
7
|
registry: Rx.Observable<RegistryLog>;
|
|
@@ -10,7 +10,7 @@ export declare function reportMisc(log$: {
|
|
|
10
10
|
appendOnly: boolean;
|
|
11
11
|
cwd: string;
|
|
12
12
|
logLevel?: LogLevel;
|
|
13
|
-
config?:
|
|
13
|
+
config?: ReporterPnpmConfig;
|
|
14
14
|
zoomOutCurrent: boolean;
|
|
15
15
|
}): Rx.Observable<Rx.Observable<{
|
|
16
16
|
msg: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Config } from '@pnpm/config.reader';
|
|
2
1
|
import type { DeprecationLog, PackageManifestLog, RootLog, SummaryLog } from '@pnpm/core-loggers';
|
|
3
2
|
import * as Rx from 'rxjs';
|
|
3
|
+
import type { ReporterPnpmConfig } from '../ReporterPnpmConfig.js';
|
|
4
4
|
import { type PackageDiff } from './pkgsDiff.js';
|
|
5
5
|
export declare function reportSummary(log$: {
|
|
6
6
|
deprecation: Rx.Observable<DeprecationLog>;
|
|
@@ -12,7 +12,7 @@ export declare function reportSummary(log$: {
|
|
|
12
12
|
cwd: string;
|
|
13
13
|
env: NodeJS.ProcessEnv;
|
|
14
14
|
filterPkgsDiff?: FilterPkgsDiff;
|
|
15
|
-
pnpmConfig?:
|
|
15
|
+
pnpmConfig?: ReporterPnpmConfig;
|
|
16
16
|
}): Rx.Observable<Rx.Observable<{
|
|
17
17
|
msg: string;
|
|
18
18
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/cli.default-reporter",
|
|
3
|
-
"version": "1100.3.
|
|
3
|
+
"version": "1100.3.14",
|
|
4
4
|
"description": "The default reporter of pnpm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -32,25 +32,24 @@
|
|
|
32
32
|
"pnpm-render": "bin/pnpm-render.mjs"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@pnpm/cli.meta": "1100.0.
|
|
36
|
-
"@pnpm/
|
|
37
|
-
"@pnpm/
|
|
38
|
-
"@pnpm/deps.inspection.peers-issues-renderer": "1100.0.9",
|
|
35
|
+
"@pnpm/cli.meta": "1100.0.13",
|
|
36
|
+
"@pnpm/core-loggers": "1100.3.1",
|
|
37
|
+
"@pnpm/deps.inspection.peers-issues-renderer": "1100.0.11",
|
|
39
38
|
"@pnpm/error": "1100.1.0",
|
|
40
|
-
"@pnpm/installing.dedupe.issues-renderer": "1100.0.
|
|
39
|
+
"@pnpm/installing.dedupe.issues-renderer": "1100.0.3",
|
|
41
40
|
"@pnpm/installing.dedupe.types": "1100.0.2",
|
|
42
|
-
"@pnpm/types": "1101.
|
|
41
|
+
"@pnpm/types": "1101.8.0",
|
|
43
42
|
"@pnpm/util.lex-comparator": "^4.0.1",
|
|
44
43
|
"ansi-diff": "^1.2.0",
|
|
45
44
|
"boxen": "npm:@zkochan/boxen@5.1.2",
|
|
46
|
-
"chalk": "^
|
|
47
|
-
"cli-truncate": "^6.
|
|
45
|
+
"chalk": "^6.0.0",
|
|
46
|
+
"cli-truncate": "^6.1.1",
|
|
48
47
|
"normalize-path": "^3.0.0",
|
|
49
|
-
"pretty-bytes": "^7.1.
|
|
48
|
+
"pretty-bytes": "^7.1.1",
|
|
50
49
|
"pretty-ms": "^9.3.0",
|
|
51
50
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
52
51
|
"rxjs": "^7.8.2",
|
|
53
|
-
"semver": "^7.8.
|
|
52
|
+
"semver": "^7.8.5",
|
|
54
53
|
"stacktracey": "^2.2.0",
|
|
55
54
|
"string-length": "^7.0.1"
|
|
56
55
|
},
|
|
@@ -59,10 +58,10 @@
|
|
|
59
58
|
},
|
|
60
59
|
"devDependencies": {
|
|
61
60
|
"@jest/globals": "30.4.1",
|
|
62
|
-
"@pnpm/cli.default-reporter": "1100.3.
|
|
61
|
+
"@pnpm/cli.default-reporter": "1100.3.14",
|
|
63
62
|
"@pnpm/logger": "1100.0.0",
|
|
64
63
|
"@types/normalize-path": "^3.0.2",
|
|
65
|
-
"@types/ramda": "0.
|
|
64
|
+
"@types/ramda": "0.32.0",
|
|
66
65
|
"@types/semver": "7.7.1",
|
|
67
66
|
"ghooks": "2.0.4",
|
|
68
67
|
"load-json-file": "^7.0.1",
|