From 8754de9e7f4f9e8d7fb33e00f53658f497a56636 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Fri, 6 Aug 2021 11:44:20 +0200 Subject: [PATCH] Added prettier to yarn deploy --- devEnv/deploy.mjs | 8 +++++--- package.json | 2 +- packages/dataverse-react/package.json | 2 +- packages/dataverse/package.json | 2 +- theatre/core/package.json | 2 +- theatre/package.json | 2 +- theatre/studio/package.json | 2 +- 7 files changed, 11 insertions(+), 9 deletions(-) diff --git a/devEnv/deploy.mjs b/devEnv/deploy.mjs index a7fd5d9..36524d2 100644 --- a/devEnv/deploy.mjs +++ b/devEnv/deploy.mjs @@ -96,7 +96,7 @@ const packagesWhoseVersionsShouldBump = [ } console.log('Assigning versions') - assignVersions(version) + await assignVersions(version) console.log('Building all packages') await Promise.all( @@ -123,7 +123,8 @@ const packagesWhoseVersionsShouldBump = [ $.verbose = true - assignVersions(version) + await assignVersions(version) + console.log('Committing/tagging') await $`git add .` @@ -145,7 +146,7 @@ const packagesWhoseVersionsShouldBump = [ ) })() -function assignVersions(monorepoVersion) { +async function assignVersions(monorepoVersion) { for (const packagePathRelativeFromRoot of packagesWhoseVersionsShouldBump) { const pathToPackage = path.resolve( __dirname, @@ -164,6 +165,7 @@ function assignVersions(monorepoVersion) { JSON.stringify(newJson, undefined, 2), {encoding: 'utf-8'}, ) + await $`prettier --write ${packagePathRelativeFromRoot + './package.json'}` } } diff --git a/package.json b/package.json index d0a9a8c..56c975e 100644 --- a/package.json +++ b/package.json @@ -46,4 +46,4 @@ "dependencies": { "node-gyp": "^8.1.0" } -} \ No newline at end of file +} diff --git a/packages/dataverse-react/package.json b/packages/dataverse-react/package.json index 34f57f7..e6ac844 100644 --- a/packages/dataverse-react/package.json +++ b/packages/dataverse-react/package.json @@ -54,4 +54,4 @@ "raect-dom": "17.0.2", "react": "17.0.2" } -} \ No newline at end of file +} diff --git a/packages/dataverse/package.json b/packages/dataverse/package.json index 4dbddf2..9a112ff 100644 --- a/packages/dataverse/package.json +++ b/packages/dataverse/package.json @@ -46,4 +46,4 @@ "dependencies": { "lodash-es": "^4.17.21" } -} \ No newline at end of file +} diff --git a/theatre/core/package.json b/theatre/core/package.json index 104276d..467bfd8 100644 --- a/theatre/core/package.json +++ b/theatre/core/package.json @@ -42,4 +42,4 @@ "dependencies": { "@theatre/dataverse": "workspace:*" } -} \ No newline at end of file +} diff --git a/theatre/package.json b/theatre/package.json index fc30daf..45c02bb 100644 --- a/theatre/package.json +++ b/theatre/package.json @@ -88,4 +88,4 @@ "url-loader": "^4.1.1", "uuid": "^8.3.2" } -} \ No newline at end of file +} diff --git a/theatre/studio/package.json b/theatre/studio/package.json index b19d856..f0f9839 100644 --- a/theatre/studio/package.json +++ b/theatre/studio/package.json @@ -42,4 +42,4 @@ "peerDependencies": { "@theatre/core": "*" } -} \ No newline at end of file +}