We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da9fc67 commit daeb30fCopy full SHA for daeb30f
‎scripts/release/update-peer-dependency-versions.ts‎
@@ -1,3 +1,4 @@
1
+import { readFileSync } from 'node:fs'
2
import { runMain } from '../lib/executionUtils.ts'
3
import { modifyFile } from '../lib/filesUtils.ts'
4
import { command } from '../lib/command.ts'
@@ -17,6 +18,11 @@ const JSON_FILES = packagesDirectoryNames.map((packageName) => `./packages/${pac
17
18
// [2]: https://github.com/lerna/lerna/issues/1575
19
runMain(async () => {
20
for (const jsonFile of JSON_FILES) {
21
+ const packageJson = JSON.parse(readFileSync(jsonFile, 'utf8'))
22
+ if (packageJson?.private) {
23
+ continue
24
+ }
25
+
26
await modifyFile(jsonFile, updateJsonPeerDependencies)
27
}
28
// update yarn.lock to match the updated JSON files
0 commit comments