The pid of the process running this pack: npm, pnpm, fyn, bun.
It runs both prepack and postpack, so it lives for the whole pack. The script's own
process does not, and neither does a shell running a chained script such as
"xrun build && publish-util-prepack". So shells between us and the packer are skipped.
Returns number
the pid, or 0 when the process table can't be read (e.g. no ps on Windows)
The pid of the process running this pack: npm, pnpm, fyn, bun.
It runs both prepack and postpack, so it lives for the whole pack. The script's own process does not, and neither does a shell running a chained script such as "xrun build && publish-util-prepack". So shells between us and the packer are skipped.