Skip to content

Commit 9a7257d

Browse files
typo: Turborepo instead of TruboRepo (#697)
* typo: Turbo instead of Trubo Co-authored-by: Caio Lins <caio@soundraw.co.jp> * typo: Turborepo not TurboRepo Co-authored-by: Caio Lins <caio@soundraw.co.jp> --------- Co-authored-by: Caio Lins <dev@clins.me>
1 parent d55ca96 commit 9a7257d

File tree

1 file changed

+10
-10
lines changed
  • packages/bundler-plugin-core/src

1 file changed

+10
-10
lines changed

packages/bundler-plugin-core/src/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,10 @@ export function sentryUnpluginFactory({
336336
plugins.push(moduleMetadataInjectionPlugin(injectionCode));
337337
}
338338
// https://turbo.build/repo/docs/reference/system-environment-variables#environment-variables-in-tasks
339-
const isRunningInTurboRepo = Boolean(process.env["TURBO_HASH"]);
340-
const getTruboRepoEnvPassthroughWarning = (envVarName: string) =>
341-
isRunningInTurboRepo
342-
? `\nYou seem to be using Truborepo, did you forget to put ${envVarName} in \`passThroughEnv\`? https://turbo.build/repo/docs/reference/configuration#passthroughenv`
339+
const isRunningInTurborepo = Boolean(process.env["TURBO_HASH"]);
340+
const getTurborepoEnvPassthroughWarning = (envVarName: string) =>
341+
isRunningInTurborepo
342+
? `\nYou seem to be using Turborepo, did you forget to put ${envVarName} in \`passThroughEnv\`? https://turbo.build/repo/docs/reference/configuration#passthroughenv`
343343
: "";
344344
if (!options.release.name) {
345345
logger.debug(
@@ -350,17 +350,17 @@ export function sentryUnpluginFactory({
350350
} else if (!options.authToken) {
351351
logger.warn(
352352
"No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/" +
353-
getTruboRepoEnvPassthroughWarning("SENTRY_AUTH_TOKEN")
353+
getTurborepoEnvPassthroughWarning("SENTRY_AUTH_TOKEN")
354354
);
355355
} else if (!options.org && !options.authToken.startsWith("sntrys_")) {
356356
logger.warn(
357357
"No organization slug provided. Will not create release. Please set the `org` option to your Sentry organization slug." +
358-
getTruboRepoEnvPassthroughWarning("SENTRY_ORG")
358+
getTurborepoEnvPassthroughWarning("SENTRY_ORG")
359359
);
360360
} else if (!options.project) {
361361
logger.warn(
362362
"No project provided. Will not create release. Please set the `project` option to your Sentry project slug." +
363-
getTruboRepoEnvPassthroughWarning("SENTRY_PROJECT")
363+
getTurborepoEnvPassthroughWarning("SENTRY_PROJECT")
364364
);
365365
} else {
366366
plugins.push(
@@ -405,17 +405,17 @@ export function sentryUnpluginFactory({
405405
} else if (!options.authToken) {
406406
logger.warn(
407407
"No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/" +
408-
getTruboRepoEnvPassthroughWarning("SENTRY_AUTH_TOKEN")
408+
getTurborepoEnvPassthroughWarning("SENTRY_AUTH_TOKEN")
409409
);
410410
} else if (!options.org && !options.authToken.startsWith("sntrys_")) {
411411
logger.warn(
412412
"No org provided. Will not upload source maps. Please set the `org` option to your Sentry organization slug." +
413-
getTruboRepoEnvPassthroughWarning("SENTRY_ORG")
413+
getTurborepoEnvPassthroughWarning("SENTRY_ORG")
414414
);
415415
} else if (!options.project) {
416416
logger.warn(
417417
"No project provided. Will not upload source maps. Please set the `project` option to your Sentry project slug." +
418-
getTruboRepoEnvPassthroughWarning("SENTRY_PROJECT")
418+
getTurborepoEnvPassthroughWarning("SENTRY_PROJECT")
419419
);
420420
} else {
421421
// This option is only strongly typed for the webpack plugin, where it is used. It has no effect on other plugins

0 commit comments

Comments
 (0)