Skip to content

Commit a68c8f9

Browse files
committed
chore: add script to update package group
1 parent efb94f5 commit a68c8f9

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.release-it.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
},
4242
"hooks": {
4343
"before:bump": "pnpm exec nx package core",
44-
"after:bump": ["git checkout -- package.json"]
44+
"after:bump": ["git checkout -- package.json", "node tools/scripts/update-package-group.mjs"]
4545
}
4646
}
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import devkit from '@nx/devkit';
2+
const { readJsonFile, writeJsonFile } = devkit;
3+
4+
const packageGroup = ['soba', 'postprocessing', 'cannon'];
5+
const distPath = 'dist/libs/core';
6+
7+
const packageJson = readJsonFile(`${distPath}/package.json`);
8+
9+
for (const packageName of packageGroup) {
10+
packageJson['nx-migrations'].packageGroup[`angular-three-${packageName}`] = packageJson['version'];
11+
packageJson['ng-update'].packageGroup[`angular-three-${packageName}`] = packageJson['version'];
12+
}
13+
14+
writeJsonFile(`${distPath}/package.json`, packageJson);

0 commit comments

Comments
 (0)