chore: run prettier part of setting up new repo
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
parent
b1535e935e
commit
6de857ef47
|
|
@ -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 });
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
Loading…
Reference in New Issue