mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
* feat: unify package artifact validation * fix: restrict local artifact output paths * fix: clarify package artifact module names * feat: support pnpm package artifact consumers * fix: preserve local release package installs Keep npm and Bun consumer installs as runnable release artifacts while retaining isolated validation for other packages. Simplify smoke fixtures and avoid redundant release work.
13 lines
465 B
JavaScript
13 lines
465 B
JavaScript
import { readFileSync } from "node:fs";
|
|
import { join } from "node:path";
|
|
import { findPackageDirectories } from "./package-workspaces.mjs";
|
|
|
|
export function getPublicWorkspacePackages(root) {
|
|
return findPackageDirectories(root)
|
|
.map((directory) => ({
|
|
directory,
|
|
...JSON.parse(readFileSync(join(directory, "package.json"), "utf8")),
|
|
}))
|
|
.filter((pkg) => pkg.private !== true)
|
|
.map(({ directory, name, version }) => ({ directory, name, version }));
|
|
}
|