Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
btopro committed Oct 10, 2024
1 parent f3f237d commit c9fa9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function main() {
cliOptions.auto = true;
// assumed if monorepo
cliOptions.type = 'webcomponent';
cliOptions.path = path.join(process.cwd(), packageData.workspaces.packages[0].replace('/*','/'));
cliOptions.path = path.join(process.cwd(), packageData.workspaces.packages[0].replace('/*',''));
if (packageData.orgNpm) {
cliOptions.org = packageData.orgNpm;
}
Expand Down Expand Up @@ -506,7 +506,7 @@ async function main() {
s.stop('Files are now awesome!');
break;
}
if (project.gitRepo) {
if (project.gitRepo && !cliOptions.isMonorepo) {
try {
await exec(`cd ${project.path}/${project.name} && git init && git add -A && git commit -m "first commit" && git branch -M main${project.gitRepo ? ` && git remote add origin ${project.gitRepo}` : ''}`);
}
Expand Down

0 comments on commit c9fa9b3

Please sign in to comment.