From 6de857ef479211e2cb59b3d4b51bd7e0dca8cf70 Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 16 Apr 2024 13:06:54 +0200 Subject: [PATCH] chore: run prettier part of setting up new repo Signed-off-by: blam --- .../repo-tools/packages/cli/src/commands/plugin/migrate.ts | 7 ++++--- .../{migrate-1713263694895.md => migrate-1713265146447.md} | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) rename workspaces/todo/.changeset/{migrate-1713263694895.md => migrate-1713265146447.md} (86%) diff --git a/workspaces/repo-tools/packages/cli/src/commands/plugin/migrate.ts b/workspaces/repo-tools/packages/cli/src/commands/plugin/migrate.ts index 6a04f01c0..090065eae 100644 --- a/workspaces/repo-tools/packages/cli/src/commands/plugin/migrate.ts +++ b/workspaces/repo-tools/packages/cli/src/commands/plugin/migrate.ts @@ -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 }); diff --git a/workspaces/todo/.changeset/migrate-1713263694895.md b/workspaces/todo/.changeset/migrate-1713265146447.md similarity index 86% rename from workspaces/todo/.changeset/migrate-1713263694895.md rename to workspaces/todo/.changeset/migrate-1713265146447.md index a7fc35682..c55108250 100644 --- a/workspaces/todo/.changeset/migrate-1713263694895.md +++ b/workspaces/todo/.changeset/migrate-1713265146447.md @@ -3,4 +3,4 @@ '@backstage-community/plugin-todo-backend': patch --- -Migrated from the [backstage/backstage](https://github.com/backstage/backstage) monorepo. \ No newline at end of file +Migrated from the [backstage/backstage](https://github.com/backstage/backstage) monorepo.