chore: run prettier part of setting up new repo

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam 2024-04-16 13:06:54 +02:00
parent b1535e935e
commit 6de857ef47
2 changed files with 5 additions and 4 deletions

View File

@ -189,7 +189,7 @@ ${options.packages.map(p => `'${p}': patch`).join('\n')}
---
${options.message}
\n`;
`;
await fs.writeFile(changesetFile, changesetContents.trim());
};
@ -345,9 +345,10 @@ export default async (opts: OptionValues) => {
});
console.log(chalk.yellow`Running yarn install in new repository`);
// run yarn install in the new workspace
await exec('yarn', ['install'], { cwd: workspacePath });
console.log(chalk.green`Done!`);
console.log(chalk.yellow`Running prettier in new repository`);
await exec('yarn', ['prettier', '--write', '.'], { cwd: workspacePath });
// reset monorepo
await exec('git', ['checkout', 'master'], { cwd: monorepoPath });

View File

@ -3,4 +3,4 @@
'@backstage-community/plugin-todo-backend': patch
---
Migrated from the [backstage/backstage](https://github.com/backstage/backstage) monorepo.
Migrated from the [backstage/backstage](https://github.com/backstage/backstage) monorepo.