mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(coding-agent): announce only verified npm releases
This commit is contained in:
parent
a3e93ec85e
commit
7d046bcf21
7 changed files with 418 additions and 37 deletions
13
scripts/release-packages.mjs
Normal file
13
scripts/release-packages.mjs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { readFileSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { findPackageDirectories } from "./package-workspaces.mjs";
|
||||
|
||||
export function getPublicWorkspacePackages() {
|
||||
return findPackageDirectories()
|
||||
.map((directory) => ({
|
||||
directory,
|
||||
...JSON.parse(readFileSync(join(directory, "package.json"), "utf8")),
|
||||
}))
|
||||
.filter((pkg) => pkg.private !== true)
|
||||
.map(({ directory, name, version }) => ({ directory, name, version }));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue