Skip to content

Commit 398fd69

Browse files
authored
fix: adjust bump script (#7121)
Signed-off-by: Alexander Onnikov <[email protected]>
1 parent 35cd740 commit 398fd69

File tree

39 files changed

+33
-112
lines changed

39 files changed

+33
-112
lines changed

.npmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@hcengineering/anticrm:registry=https://npm.pkg.github.com/
1+
@hcengineering/platform:registry=https://npm.pkg.github.com/

common/scripts/bump.js

+19-1
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,20 @@ function publish (name) {
5050
}
5151
}
5252

53+
function fix (name) {
54+
const package = packages[name]
55+
try {
56+
console.log('fixing', name)
57+
execSync(`cd ${package.path} && npm pkg fix && cd ../..`, { encoding: 'utf-8' })
58+
} catch (err) {
59+
console.log(err)
60+
}
61+
}
62+
5363
function main () {
5464
const args = process.argv
5565

66+
const doFix = args.includes('--fix')
5667
const doPublish = args.includes('--publish')
5768

5869
const version = args.reverse().shift()
@@ -82,7 +93,14 @@ function main () {
8293
const res = JSON.stringify(jsons[packageName], undefined, 2)
8394
fs.writeFileSync(file, res + '\n')
8495
}
85-
if(doPublish) {
96+
if (doFix) {
97+
for (const packageName of packageNames) {
98+
if (shouldPublish(packageName)) {
99+
fix(packageName)
100+
}
101+
}
102+
}
103+
if (doPublish) {
86104
for (const packageName of packageNames) {
87105
if (shouldPublish(packageName)) {
88106
publish(packageName)

dev/storybook/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@
3030
"storybook": "^7.0.6",
3131
"storybook-addon-themes": "^6.1.0",
3232
"svelte-preprocess": "^5.1.3"
33-
},
34-
"repository": "https://github.com/hcenginneing/anticrm"
33+
}
3534
}

packages/model/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,5 @@
4545
"@hcengineering/rank": "^0.6.4",
4646
"toposort": "^2.0.2",
4747
"fast-equals": "^5.0.1"
48-
},
49-
"repository": "https://github.com/hcenginneing/anticrm",
50-
"publishConfig": {
51-
"registry": "https://npm.pkg.github.com"
5248
}
5349
}

packages/panel/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,5 @@
4646
"@hcengineering/presentation": "^0.6.3",
4747
"@hcengineering/activity": "^0.6.0",
4848
"@hcengineering/calendar": "^0.6.24"
49-
},
50-
"repository": "https://github.com/hcenginneing/anticrm",
51-
"publishConfig": {
52-
"registry": "https://npm.pkg.github.com"
5349
}
5450
}

packages/query/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@hcengineering/analytics": "^0.6.0",
4444
"fast-equals": "^5.0.1"
4545
},
46-
"repository": "https://github.com/hcenginneing/anticrm",
46+
"repository": "https://github.com/hcengineering/platform",
4747
"publishConfig": {
4848
"registry": "https://npm.pkg.github.com"
4949
}

packages/text/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"yjs": "^13.6.19",
6868
"y-prosemirror": "^1.2.12"
6969
},
70-
"repository": "https://github.com/hcenginneing/anticrm",
70+
"repository": "https://github.com/hcengineering/platform",
7171
"publishConfig": {
7272
"registry": "https://npm.pkg.github.com"
7373
}

packages/theme/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@hcengineering/platform": "^0.6.11",
4141
"@hcengineering/analytics": "^0.6.0"
4242
},
43-
"repository": "https://github.com/hcenginneing/anticrm",
43+
"repository": "https://github.com/hcengineering/platform",
4444
"publishConfig": {
4545
"registry": "https://npm.pkg.github.com"
4646
}

packages/ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"dompurify": "^3.1.6",
5252
"@hcengineering/analytics": "^0.6.0"
5353
},
54-
"repository": "https://github.com/hcenginneing/anticrm",
54+
"repository": "https://github.com/hcengineering/platform",
5555
"publishConfig": {
5656
"registry": "https://npm.pkg.github.com"
5757
}

plugins/activity-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/activity": "^0.6.0"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/attachment-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/attachment": "^0.6.14"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/board-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/board": "^0.6.19"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/board/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@hcengineering/preference": "^0.6.13",
4747
"@hcengineering/tags": "^0.6.16"
4848
},
49-
"repository": "https://github.com/hcenginneing/anticrm",
49+
"repository": "https://github.com/hcengineering/platform",
5050
"publishConfig": {
5151
"registry": "https://npm.pkg.github.com"
5252
}

plugins/calendar-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/calendar": "^0.6.24"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/chunter-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/chunter": "^0.6.20"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/contact-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/contact": "^0.6.24"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/drive-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/drive": "^0.6.0"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/guest-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/guest": "^0.6.4"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/guest/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,5 @@
4040
"@hcengineering/core": "^0.6.32",
4141
"@hcengineering/platform": "^0.6.11",
4242
"@hcengineering/ui": "^0.6.15"
43-
},
44-
"repository": "https://github.com/hcenginneing/anticrm",
45-
"publishConfig": {
46-
"registry": "https://npm.pkg.github.com"
4743
}
4844
}

plugins/hr-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/hr": "^0.6.19"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/hr/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@hcengineering/view": "^0.6.13",
4444
"@hcengineering/notification": "^0.6.23"
4545
},
46-
"repository": "https://github.com/hcenginneing/anticrm",
46+
"repository": "https://github.com/hcengineering/platform",
4747
"publishConfig": {
4848
"registry": "https://npm.pkg.github.com"
4949
}

plugins/inventory-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/inventory": "^0.6.11"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/inventory/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@hcengineering/core": "^0.6.32",
4141
"@hcengineering/platform": "^0.6.11"
4242
},
43-
"repository": "https://github.com/hcenginneing/anticrm",
43+
"repository": "https://github.com/hcengineering/platform",
4444
"publishConfig": {
4545
"registry": "https://npm.pkg.github.com"
4646
}

plugins/login/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@hcengineering/platform": "^0.6.11",
4242
"@hcengineering/ui": "^0.6.15"
4343
},
44-
"repository": "https://github.com/hcenginneing/anticrm",
44+
"repository": "https://github.com/hcengineering/platform",
4545
"publishConfig": {
4646
"registry": "https://npm.pkg.github.com"
4747
}

plugins/notification-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/notification": "^0.6.23"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/onboard/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,5 @@
4141
"@hcengineering/platform": "^0.6.11",
4242
"@hcengineering/ui": "^0.6.15",
4343
"@hcengineering/login": "^0.6.12"
44-
},
45-
"repository": "https://github.com/hcenginneing/anticrm",
46-
"publishConfig": {
47-
"registry": "https://npm.pkg.github.com"
4844
}
4945
}

plugins/preference/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@hcengineering/core": "^0.6.32",
4242
"@hcengineering/ui": "^0.6.15"
4343
},
44-
"repository": "https://github.com/hcenginneing/anticrm",
44+
"repository": "https://github.com/hcengineering/platform",
4545
"publishConfig": {
4646
"registry": "https://npm.pkg.github.com"
4747
}

plugins/recruit-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/recruit": "^0.6.29"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/setting-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/setting": "^0.6.17"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/support-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/support": "^0.6.5"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/task-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/task": "^0.6.20"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/templates-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/templates": "^0.6.11"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/templates/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@hcengineering/core": "^0.6.32",
4242
"@hcengineering/ui": "^0.6.15"
4343
},
44-
"repository": "https://github.com/hcenginneing/anticrm",
44+
"repository": "https://github.com/hcengineering/platform",
4545
"publishConfig": {
4646
"registry": "https://npm.pkg.github.com"
4747
}

plugins/text-editor-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/text-editor": "^0.6.0"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/uploader-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/uploader": "^0.6.0"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/view-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/view": "^0.6.13"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/view/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@hcengineering/ui": "^0.6.15",
4343
"@hcengineering/preference": "^0.6.13"
4444
},
45-
"repository": "https://github.com/hcenginneing/anticrm",
45+
"repository": "https://github.com/hcengineering/platform",
4646
"publishConfig": {
4747
"registry": "https://npm.pkg.github.com"
4848
}

plugins/workbench-assets/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,5 @@
3535
"dependencies": {
3636
"@hcengineering/platform": "^0.6.11",
3737
"@hcengineering/workbench": "^0.6.16"
38-
},
39-
"repository": "https://github.com/hcenginneing/anticrm",
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com"
4238
}
4339
}

plugins/workbench/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@hcengineering/ui": "^0.6.15",
4545
"@hcengineering/view": "^0.6.13"
4646
},
47-
"repository": "https://github.com/hcenginneing/anticrm",
47+
"repository": "https://github.com/hcengineering/platform",
4848
"publishConfig": {
4949
"registry": "https://npm.pkg.github.com"
5050
}

0 commit comments

Comments
 (0)