-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(child-process): Prevent duplicate logs when any package-oriented …
…execution fails Previously, avoiding duplicate logging required special handling per use-case and only covered non-streaming variants.
- Loading branch information
Showing
11 changed files
with
106 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ describe("dist-tag", () => { | |
|
||
expect(ChildProcessUtilities.exec).lastCalledWith("npm", ["dist-tag", "add", "[email protected]", tag], { | ||
cwd: pkg.location, | ||
pkg, | ||
}); | ||
}); | ||
|
||
|
@@ -39,6 +40,7 @@ describe("dist-tag", () => { | |
npm_config_registry: registry, | ||
}), | ||
extendEnv: false, | ||
pkg, | ||
}); | ||
}); | ||
}); | ||
|
@@ -56,6 +58,7 @@ describe("dist-tag", () => { | |
|
||
expect(ChildProcessUtilities.exec).lastCalledWith("npm", ["dist-tag", "rm", pkg.name, tag], { | ||
cwd: pkg.location, | ||
pkg, | ||
}); | ||
}); | ||
|
||
|
@@ -68,6 +71,7 @@ describe("dist-tag", () => { | |
npm_config_registry: registry, | ||
}), | ||
extendEnv: false, | ||
pkg, | ||
}); | ||
}); | ||
}); | ||
|
@@ -88,6 +92,7 @@ describe("dist-tag", () => { | |
|
||
expect(ChildProcessUtilities.execSync).lastCalledWith("npm", ["dist-tag", "ls", pkg.name], { | ||
cwd: pkg.location, | ||
pkg, | ||
}); | ||
}); | ||
|
||
|
@@ -102,6 +107,7 @@ describe("dist-tag", () => { | |
npm_config_registry: registry, | ||
}), | ||
extendEnv: false, | ||
pkg, | ||
}); | ||
}); | ||
}); | ||
|
Oops, something went wrong.