Added prettier to yarn deploy
This commit is contained in:
parent
327298f089
commit
8754de9e7f
7 changed files with 11 additions and 9 deletions
|
@ -96,7 +96,7 @@ const packagesWhoseVersionsShouldBump = [
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Assigning versions')
|
console.log('Assigning versions')
|
||||||
assignVersions(version)
|
await assignVersions(version)
|
||||||
|
|
||||||
console.log('Building all packages')
|
console.log('Building all packages')
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
|
@ -123,7 +123,8 @@ const packagesWhoseVersionsShouldBump = [
|
||||||
|
|
||||||
$.verbose = true
|
$.verbose = true
|
||||||
|
|
||||||
assignVersions(version)
|
await assignVersions(version)
|
||||||
|
|
||||||
console.log('Committing/tagging')
|
console.log('Committing/tagging')
|
||||||
|
|
||||||
await $`git add .`
|
await $`git add .`
|
||||||
|
@ -145,7 +146,7 @@ const packagesWhoseVersionsShouldBump = [
|
||||||
)
|
)
|
||||||
})()
|
})()
|
||||||
|
|
||||||
function assignVersions(monorepoVersion) {
|
async function assignVersions(monorepoVersion) {
|
||||||
for (const packagePathRelativeFromRoot of packagesWhoseVersionsShouldBump) {
|
for (const packagePathRelativeFromRoot of packagesWhoseVersionsShouldBump) {
|
||||||
const pathToPackage = path.resolve(
|
const pathToPackage = path.resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
|
@ -164,6 +165,7 @@ function assignVersions(monorepoVersion) {
|
||||||
JSON.stringify(newJson, undefined, 2),
|
JSON.stringify(newJson, undefined, 2),
|
||||||
{encoding: 'utf-8'},
|
{encoding: 'utf-8'},
|
||||||
)
|
)
|
||||||
|
await $`prettier --write ${packagePathRelativeFromRoot + './package.json'}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,4 +46,4 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"node-gyp": "^8.1.0"
|
"node-gyp": "^8.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,4 +54,4 @@
|
||||||
"raect-dom": "17.0.2",
|
"raect-dom": "17.0.2",
|
||||||
"react": "17.0.2"
|
"react": "17.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,4 +46,4 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash-es": "^4.17.21"
|
"lodash-es": "^4.17.21"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,4 +42,4 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@theatre/dataverse": "workspace:*"
|
"@theatre/dataverse": "workspace:*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,4 +88,4 @@
|
||||||
"url-loader": "^4.1.1",
|
"url-loader": "^4.1.1",
|
||||||
"uuid": "^8.3.2"
|
"uuid": "^8.3.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,4 +42,4 @@
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@theatre/core": "*"
|
"@theatre/core": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue