We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 038577a commit fa20a31Copy full SHA for fa20a31
packages/remix/scripts/injectDebugId.js
@@ -1,9 +1,13 @@
1
/* eslint-disable no-console */
2
const { execSync } = require('child_process');
3
4
+const SentryCli = require('@sentry/cli');
5
+
6
function injectDebugId(buildPath) {
7
+ const cliPath = SentryCli.getPath();
8
9
try {
- execSync(`node ./node_modules/@sentry/cli/bin/sentry-cli sourcemaps inject ${buildPath}`);
10
+ execSync(`${cliPath} sourcemaps inject ${buildPath}`);
11
} catch (error) {
12
console.warn('[sentry] Failed to inject debug ids.');
13
console.error(error);
0 commit comments