From 2912c7e516a1818bb13e6f9c260699ddbd10212d Mon Sep 17 00:00:00 2001 From: Donald Labaj Date: Tue, 21 Apr 2026 14:49:15 -0400 Subject: [PATCH 1/2] fix: Fixed pf starter seed issue. fix: Fixes issue with patternfly-startarter seed not building. --- src/templates.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/templates.ts b/src/templates.ts index a77dbc6..466929d 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -19,7 +19,8 @@ export const defaultTemplates: Template[] = [ description: "A starter template for Patternfly react typescript project", repo: "https://github.com/patternfly/patternfly-react-seed.git", repoSSH: "git@github.com:patternfly/patternfly-react-seed.git", - packageManager: "yarn" + options: ["--single-branch", "--branch", "main"], + packageManager: "npm" }, { name: "compass-starter", From db02f1e26f31a34a37eb282dab5e41c9af06edc8 Mon Sep 17 00:00:00 2001 From: Donald Labaj Date: Wed, 29 Apr 2026 13:13:27 -0400 Subject: [PATCH 2/2] chore: updated code to fix broken tests. --- src/__tests__/create.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/__tests__/create.test.ts b/src/__tests__/create.test.ts index db19eff..3b7434f 100644 --- a/src/__tests__/create.test.ts +++ b/src/__tests__/create.test.ts @@ -152,7 +152,7 @@ describe('runCreate', () => { expect(mockExeca).toHaveBeenNthCalledWith( 1, 'git', - ['clone', starter!.repo, projectPath], + ['clone', ...(starter!.options ?? []), starter!.repo, projectPath], expect.objectContaining({ stdio: 'inherit' }) ); }); @@ -166,7 +166,7 @@ describe('runCreate', () => { expect(mockExeca).toHaveBeenNthCalledWith( 1, 'git', - ['clone', starter!.repoSSH, projectPath], + ['clone', ...(starter!.options ?? []), starter!.repoSSH, projectPath], expect.objectContaining({ stdio: 'inherit' }) ); }); @@ -225,7 +225,7 @@ describe('runCreate', () => { expect(mockExeca).toHaveBeenNthCalledWith( 2, - 'yarn', + 'npm', ['install'], expect.objectContaining({ cwd: projectPath, stdio: 'inherit' }) );