Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.
Open
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
4 changes: 2 additions & 2 deletions lib/utils/bootstrap-ui-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function bootstrapUIPackage(
/* Initialize before npm i because husky requires git for setup */
if (isGitInstalled) {
context.log.info(`Git is installed, initializing repo.`);
spawnSyncStrict('git', ['init'], defaultSpawnOptions);
spawnSyncStrict('git', ['init', '-b', 'main'], defaultSpawnOptions);
}

/* Some files should be automatically generated. Set them to read-only to avoid user manipulation */
Expand All @@ -72,7 +72,7 @@ export function bootstrapUIPackage(

/* Run NPM Install */
context.log.info(`Installing npm dependencies.`);
spawnSyncStrict('npm', ['i'], defaultSpawnOptions);
spawnSyncStrict('npm', ['i', '--legacy-peer-deps'], defaultSpawnOptions);

/* Create initial commit */
if (isGitInstalled) {
Expand Down