Skip to content

Commit 2762694

Browse files
authored
Merge pull request #34 from dlabaj/pf-seed-fix
fix: Fixes issue with patternfly-starter seed is not building.
2 parents c92030e + db02f1e commit 2762694

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/__tests__/create.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe('runCreate', () => {
152152
expect(mockExeca).toHaveBeenNthCalledWith(
153153
1,
154154
'git',
155-
['clone', starter!.repo, projectPath],
155+
['clone', ...(starter!.options ?? []), starter!.repo, projectPath],
156156
expect.objectContaining({ stdio: 'inherit' })
157157
);
158158
});
@@ -166,7 +166,7 @@ describe('runCreate', () => {
166166
expect(mockExeca).toHaveBeenNthCalledWith(
167167
1,
168168
'git',
169-
['clone', starter!.repoSSH, projectPath],
169+
['clone', ...(starter!.options ?? []), starter!.repoSSH, projectPath],
170170
expect.objectContaining({ stdio: 'inherit' })
171171
);
172172
});
@@ -225,7 +225,7 @@ describe('runCreate', () => {
225225

226226
expect(mockExeca).toHaveBeenNthCalledWith(
227227
2,
228-
'yarn',
228+
'npm',
229229
['install'],
230230
expect.objectContaining({ cwd: projectPath, stdio: 'inherit' })
231231
);

src/templates.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export const defaultTemplates: Template[] = [
1919
description: "A starter template for Patternfly react typescript project",
2020
repo: "https://github.com/patternfly/patternfly-react-seed.git",
2121
repoSSH: "git@github.com:patternfly/patternfly-react-seed.git",
22-
packageManager: "yarn"
22+
options: ["--single-branch", "--branch", "main"],
23+
packageManager: "npm"
2324
},
2425
{
2526
name: "compass-starter",

0 commit comments

Comments
 (0)