Skip to content

Commit

Permalink
fix: adjust bump script (#7121)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Onnikov <[email protected]>
  • Loading branch information
aonnikov authored Nov 7, 2024
1 parent 35cd740 commit 398fd69
Show file tree
Hide file tree
Showing 39 changed files with 33 additions and 112 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@hcengineering/anticrm:registry=https://npm.pkg.github.com/
@hcengineering/platform:registry=https://npm.pkg.github.com/
20 changes: 19 additions & 1 deletion common/scripts/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,20 @@ function publish (name) {
}
}

function fix (name) {
const package = packages[name]
try {
console.log('fixing', name)
execSync(`cd ${package.path} && npm pkg fix && cd ../..`, { encoding: 'utf-8' })
} catch (err) {
console.log(err)
}
}

function main () {
const args = process.argv

const doFix = args.includes('--fix')
const doPublish = args.includes('--publish')

const version = args.reverse().shift()
Expand Down Expand Up @@ -82,7 +93,14 @@ function main () {
const res = JSON.stringify(jsons[packageName], undefined, 2)
fs.writeFileSync(file, res + '\n')
}
if(doPublish) {
if (doFix) {
for (const packageName of packageNames) {
if (shouldPublish(packageName)) {
fix(packageName)
}
}
}
if (doPublish) {
for (const packageName of packageNames) {
if (shouldPublish(packageName)) {
publish(packageName)
Expand Down
3 changes: 1 addition & 2 deletions dev/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,5 @@
"storybook": "^7.0.6",
"storybook-addon-themes": "^6.1.0",
"svelte-preprocess": "^5.1.3"
},
"repository": "https://github.com/hcenginneing/anticrm"
}
}
4 changes: 0 additions & 4 deletions packages/model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,5 @@
"@hcengineering/rank": "^0.6.4",
"toposort": "^2.0.2",
"fast-equals": "^5.0.1"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions packages/panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,5 @@
"@hcengineering/presentation": "^0.6.3",
"@hcengineering/activity": "^0.6.0",
"@hcengineering/calendar": "^0.6.24"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
2 changes: 1 addition & 1 deletion packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@hcengineering/analytics": "^0.6.0",
"fast-equals": "^5.0.1"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"yjs": "^13.6.19",
"y-prosemirror": "^1.2.12"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@hcengineering/platform": "^0.6.11",
"@hcengineering/analytics": "^0.6.0"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"dompurify": "^3.1.6",
"@hcengineering/analytics": "^0.6.0"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
4 changes: 0 additions & 4 deletions plugins/activity-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/activity": "^0.6.0"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/attachment-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/attachment": "^0.6.14"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/board-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/board": "^0.6.19"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
2 changes: 1 addition & 1 deletion plugins/board/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@hcengineering/preference": "^0.6.13",
"@hcengineering/tags": "^0.6.16"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
4 changes: 0 additions & 4 deletions plugins/calendar-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/calendar": "^0.6.24"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/chunter-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/chunter": "^0.6.20"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/contact-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/contact": "^0.6.24"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/drive-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/drive": "^0.6.0"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/guest-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/guest": "^0.6.4"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/guest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,5 @@
"@hcengineering/core": "^0.6.32",
"@hcengineering/platform": "^0.6.11",
"@hcengineering/ui": "^0.6.15"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/hr-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/hr": "^0.6.19"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
2 changes: 1 addition & 1 deletion plugins/hr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@hcengineering/view": "^0.6.13",
"@hcengineering/notification": "^0.6.23"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
4 changes: 0 additions & 4 deletions plugins/inventory-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/inventory": "^0.6.11"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
2 changes: 1 addition & 1 deletion plugins/inventory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@hcengineering/core": "^0.6.32",
"@hcengineering/platform": "^0.6.11"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@hcengineering/platform": "^0.6.11",
"@hcengineering/ui": "^0.6.15"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
4 changes: 0 additions & 4 deletions plugins/notification-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/notification": "^0.6.23"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/onboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,5 @@
"@hcengineering/platform": "^0.6.11",
"@hcengineering/ui": "^0.6.15",
"@hcengineering/login": "^0.6.12"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
2 changes: 1 addition & 1 deletion plugins/preference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@hcengineering/core": "^0.6.32",
"@hcengineering/ui": "^0.6.15"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
4 changes: 0 additions & 4 deletions plugins/recruit-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/recruit": "^0.6.29"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/setting-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/setting": "^0.6.17"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/support-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/support": "^0.6.5"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/task-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/task": "^0.6.20"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/templates-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/templates": "^0.6.11"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
2 changes: 1 addition & 1 deletion plugins/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@hcengineering/core": "^0.6.32",
"@hcengineering/ui": "^0.6.15"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
4 changes: 0 additions & 4 deletions plugins/text-editor-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/text-editor": "^0.6.0"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/uploader-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/uploader": "^0.6.0"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
4 changes: 0 additions & 4 deletions plugins/view-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/view": "^0.6.13"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
2 changes: 1 addition & 1 deletion plugins/view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@hcengineering/ui": "^0.6.15",
"@hcengineering/preference": "^0.6.13"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down
4 changes: 0 additions & 4 deletions plugins/workbench-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"dependencies": {
"@hcengineering/platform": "^0.6.11",
"@hcengineering/workbench": "^0.6.16"
},
"repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
2 changes: 1 addition & 1 deletion plugins/workbench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@hcengineering/ui": "^0.6.15",
"@hcengineering/view": "^0.6.13"
},
"repository": "https://github.com/hcenginneing/anticrm",
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
Expand Down

0 comments on commit 398fd69

Please sign in to comment.