Skip to content

typo: Turborepo instead of TruboRepo #697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions packages/bundler-plugin-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ export function sentryUnpluginFactory({
plugins.push(moduleMetadataInjectionPlugin(injectionCode));
}
// https://turbo.build/repo/docs/reference/system-environment-variables#environment-variables-in-tasks
const isRunningInTurboRepo = Boolean(process.env["TURBO_HASH"]);
const getTruboRepoEnvPassthroughWarning = (envVarName: string) =>
isRunningInTurboRepo
? `\nYou seem to be using Truborepo, did you forget to put ${envVarName} in \`passThroughEnv\`? https://turbo.build/repo/docs/reference/configuration#passthroughenv`
const isRunningInTurborepo = Boolean(process.env["TURBO_HASH"]);
const getTurborepoEnvPassthroughWarning = (envVarName: string) =>
isRunningInTurborepo
? `\nYou seem to be using Turborepo, did you forget to put ${envVarName} in \`passThroughEnv\`? https://turbo.build/repo/docs/reference/configuration#passthroughenv`
: "";
if (!options.release.name) {
logger.debug(
Expand All @@ -350,17 +350,17 @@ export function sentryUnpluginFactory({
} else if (!options.authToken) {
logger.warn(
"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/" +
getTruboRepoEnvPassthroughWarning("SENTRY_AUTH_TOKEN")
getTurborepoEnvPassthroughWarning("SENTRY_AUTH_TOKEN")
);
} else if (!options.org && !options.authToken.startsWith("sntrys_")) {
logger.warn(
"No organization slug provided. Will not create release. Please set the `org` option to your Sentry organization slug." +
getTruboRepoEnvPassthroughWarning("SENTRY_ORG")
getTurborepoEnvPassthroughWarning("SENTRY_ORG")
);
} else if (!options.project) {
logger.warn(
"No project provided. Will not create release. Please set the `project` option to your Sentry project slug." +
getTruboRepoEnvPassthroughWarning("SENTRY_PROJECT")
getTurborepoEnvPassthroughWarning("SENTRY_PROJECT")
);
} else {
plugins.push(
Expand Down Expand Up @@ -405,17 +405,17 @@ export function sentryUnpluginFactory({
} else if (!options.authToken) {
logger.warn(
"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/" +
getTruboRepoEnvPassthroughWarning("SENTRY_AUTH_TOKEN")
getTurborepoEnvPassthroughWarning("SENTRY_AUTH_TOKEN")
);
} else if (!options.org && !options.authToken.startsWith("sntrys_")) {
logger.warn(
"No org provided. Will not upload source maps. Please set the `org` option to your Sentry organization slug." +
getTruboRepoEnvPassthroughWarning("SENTRY_ORG")
getTurborepoEnvPassthroughWarning("SENTRY_ORG")
);
} else if (!options.project) {
logger.warn(
"No project provided. Will not upload source maps. Please set the `project` option to your Sentry project slug." +
getTruboRepoEnvPassthroughWarning("SENTRY_PROJECT")
getTurborepoEnvPassthroughWarning("SENTRY_PROJECT")
);
} else {
// This option is only strongly typed for the webpack plugin, where it is used. It has no effect on other plugins
Expand Down
Loading