Skip to content

Commit

Permalink
fix(create-turbo): correct repo name (#9708)
Browse files Browse the repository at this point in the history
### Description

We have the repo name hardcoded to identify official examples, but we
didn't update the name when we changed the name of the repository many
moons ago.
  • Loading branch information
anthonyshew authored Jan 15, 2025
1 parent 3876baf commit e0a3297
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/create-turbo/src/transforms/official-starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ export async function transform(args: TransformInput): TransformResult {
const { prompts, example, opts } = args;

const defaultExample = isDefaultExample(example.name);
const isOfficialStarter =
!example.repo ||
(example.repo.username === "vercel" && example.repo.name === "turbo");
const isThisRepo =
example.repo &&
(example.repo.name === "turborepo" || example.repo.name === "turbo");
const isOfficialStarter = example.repo?.username === "vercel" && isThisRepo;

if (!isOfficialStarter) {
return { result: "not-applicable", ...meta };
Expand Down

0 comments on commit e0a3297

Please sign in to comment.