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' }) ); 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",