Skip to content

Commit 8b93465

Browse files
authored
fix(plugin-manager): Enable "rejectOnError" in debug (#837)
* fix(plugin-manager): Enable "rejectOnError" in debug * fix ci fails
1 parent f7bcee9 commit 8b93465

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

packages/bundler-plugin-core/src/build-plugin-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ export function createSentryBuildPluginManager(
555555
const cliInstance = createCliInstance(options);
556556
await cliInstance.execute(
557557
["sourcemaps", "inject", ...buildArtifactPaths],
558-
options.debug ?? false
558+
options.debug ? "rejectOnError" : false
559559
);
560560
} catch (e) {
561561
sentryScope.captureException('Error in "debugIdInjectionPlugin" writeBundle hook');

packages/bundler-plugin-core/test/build-plugin-manager.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ describe("createSentryBuildPluginManager", () => {
439439
);
440440
});
441441

442-
it("should pass debug flag when options.debug is true", async () => {
442+
it('should pass "rejectOnError" flag when options.debug is true', async () => {
443443
mockCliExecute.mockResolvedValue(undefined);
444444

445445
const buildPluginManager = createSentryBuildPluginManager(
@@ -460,7 +460,7 @@ describe("createSentryBuildPluginManager", () => {
460460

461461
expect(mockCliExecute).toHaveBeenCalledWith(
462462
["sourcemaps", "inject", "/path/to/bundle"],
463-
true
463+
"rejectOnError"
464464
);
465465
});
466466
});

yarn.lock

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8109,15 +8109,6 @@ istanbul-reports@^3.1.3:
81098109
html-escaper "^2.0.0"
81108110
istanbul-lib-report "^3.0.0"
81118111

8112-
jackspeak@^2.0.3:
8113-
version "2.2.1"
8114-
resolved "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.1.tgz#655e8cf025d872c9c03d3eb63e8f0c024fef16a6"
8115-
integrity sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==
8116-
dependencies:
8117-
"@isaacs/cliui" "^8.0.2"
8118-
optionalDependencies:
8119-
"@pkgjs/parseargs" "^0.11.0"
8120-
81218112
jackspeak@^3.1.2:
81228113
version "3.4.3"
81238114
resolved "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a"
@@ -9608,7 +9599,7 @@ minimatch@^8.0.2:
96089599
dependencies:
96099600
brace-expansion "^2.0.1"
96109601

9611-
minimatch@^9.0.0, minimatch@^9.0.1:
9602+
minimatch@^9.0.0:
96129603
version "9.0.1"
96139604
resolved "https://registry.npmjs.org/minimatch/-/minimatch-9.0.1.tgz#8a555f541cf976c622daf078bb28f29fb927c253"
96149605
integrity sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==
@@ -10764,7 +10755,7 @@ path-scurry@^1.11.1:
1076410755
lru-cache "^10.2.0"
1076510756
minipass "^5.0.0 || ^6.0.2 || ^7.0.0"
1076610757

10767-
path-scurry@^1.6.1, path-scurry@^1.7.0:
10758+
path-scurry@^1.6.1:
1076810759
version "1.9.2"
1076910760
resolved "https://registry.npmjs.org/path-scurry/-/path-scurry-1.9.2.tgz#90f9d296ac5e37e608028e28a447b11d385b3f63"
1077010761
integrity sha512-qSDLy2aGFPm8i4rsbHd4MNyTcrzHFsLQykrtbuGRknZZCBBVXSv2tSCDN2Cg6Rt/GFRw8GoW9y9Ecw5rIPG1sg==

0 commit comments

Comments
 (0)