@yarnpkg/core
Advanced tools
Comparing version 4.0.0-rc.43 to 4.0.0-rc.44
@@ -210,2 +210,3 @@ /// <reference types="node" /> | ||
static telemetry: TelemetryManager | null; | ||
isCI: boolean; | ||
startingCwd: PortablePath; | ||
@@ -212,0 +213,0 @@ projectCwd: PortablePath | null; |
@@ -43,3 +43,3 @@ /// <reference types="node" /> | ||
private warningCount; | ||
private errorCount; | ||
private errors; | ||
private startTime; | ||
@@ -73,2 +73,3 @@ private indent; | ||
reportError(name: MessageName, text: string): void; | ||
reportErrorImpl(name: MessageName, text: string): void; | ||
reportProgress(progressIt: ProgressIterable): { | ||
@@ -75,0 +76,0 @@ stop: () => void; |
@@ -119,3 +119,3 @@ "use strict"; | ||
this.warningCount = 0; | ||
this.errorCount = 0; | ||
this.errors = []; | ||
this.startTime = Date.now(); | ||
@@ -153,3 +153,3 @@ this.indent = 0; | ||
hasErrors() { | ||
return this.errorCount > 0; | ||
return this.errors.length > 0; | ||
} | ||
@@ -237,4 +237,8 @@ exitCode() { | ||
this.indent -= 1; | ||
if (GROUP !== null && !this.json && this.includeInfos) | ||
if (GROUP !== null && !this.json && this.includeInfos) { | ||
this.stdout.write(GROUP.end(what)); | ||
for (const [name, text] of this.errors) { | ||
this.reportErrorImpl(name, text); | ||
} | ||
} | ||
if (this.configuration.get(`enableTimers`) && elapsedTime > 200) { | ||
@@ -325,3 +329,6 @@ this.reportInfo(null, `└ Completed in ${formatUtils.pretty(this.configuration, elapsedTime, formatUtils.Type.DURATION)}`); | ||
reportError(name, text) { | ||
this.errorCount += 1; | ||
this.errors.push([name, text]); | ||
this.reportErrorImpl(name, text); | ||
} | ||
reportErrorImpl(name, text) { | ||
this.commit(); | ||
@@ -383,3 +390,3 @@ const formattedName = this.formatNameWithHyperlink(name); | ||
let installStatus = ``; | ||
if (this.errorCount > 0) | ||
if (this.errors.length > 0) | ||
installStatus = `Failed with errors`; | ||
@@ -394,3 +401,3 @@ else if (this.warningCount > 0) | ||
: installStatus; | ||
if (this.errorCount > 0) { | ||
if (this.errors.length > 0) { | ||
this.reportError(MessageName_1.MessageName.UNNAMED, message); | ||
@@ -397,0 +404,0 @@ } |
{ | ||
"name": "@yarnpkg/core", | ||
"version": "4.0.0-rc.43", | ||
"version": "4.0.0-rc.44", | ||
"stableVersion": "3.5.1", | ||
@@ -16,6 +16,6 @@ "license": "BSD-2-Clause", | ||
"@types/treeify": "^1.0.0", | ||
"@yarnpkg/fslib": "^3.0.0-rc.43", | ||
"@yarnpkg/libzip": "^3.0.0-rc.43", | ||
"@yarnpkg/parsers": "^3.0.0-rc.43", | ||
"@yarnpkg/shell": "^4.0.0-rc.43", | ||
"@yarnpkg/fslib": "^3.0.0-rc.44", | ||
"@yarnpkg/libzip": "^3.0.0-rc.44", | ||
"@yarnpkg/parsers": "^3.0.0-rc.44", | ||
"@yarnpkg/shell": "^4.0.0-rc.44", | ||
"camelcase": "^5.3.1", | ||
@@ -52,6 +52,6 @@ "chalk": "^3.0.0", | ||
"@types/tunnel": "^0.0.0", | ||
"@yarnpkg/cli": "^4.0.0-rc.43", | ||
"@yarnpkg/plugin-link": "^3.0.0-rc.43", | ||
"@yarnpkg/plugin-npm": "^3.0.0-rc.43", | ||
"@yarnpkg/plugin-pnp": "^4.0.0-rc.43", | ||
"@yarnpkg/cli": "^4.0.0-rc.44", | ||
"@yarnpkg/plugin-link": "^3.0.0-rc.44", | ||
"@yarnpkg/plugin-npm": "^3.0.0-rc.44", | ||
"@yarnpkg/plugin-pnp": "^4.0.0-rc.44", | ||
"comment-json": "^2.2.0", | ||
@@ -58,0 +58,0 @@ "esbuild": "npm:esbuild-wasm@^0.15.15", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
769494
13868
+ Added@types/node@22.10.0(transitive)
+ Added@yarnpkg/fslib@3.1.1(transitive)
+ Added@yarnpkg/shell@4.1.1(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@types/node@22.9.1(transitive)
- Removed@yarnpkg/fslib@3.1.0(transitive)
- Removed@yarnpkg/shell@4.1.0(transitive)
- Removedundici-types@6.19.8(transitive)
Updated@yarnpkg/fslib@^3.0.0-rc.44
Updated@yarnpkg/libzip@^3.0.0-rc.44
Updated@yarnpkg/shell@^4.0.0-rc.44