Skip to content

pack_and_copy

Pack publisher packages and install the tarballs into consumer repos for pre-release validation.

Builds and packs each publisher package, then installs the resulting tarball into the corresponding consumer directory. Use for local integration testing of a publisher change against downstream consumers before pushing branches or opening PRs, with no registry round-trip.

NameTypeRequiredDescription
sessionIdstringyesThe Polygraph session ID, or a Polygraph app session URL (/s/<session-id> or /orgs/<org-id>/sessions/<session-id>).
pairsarrayyesPublisher-consumer path pairs. Each object has publisherPath (path to the package to build and pack) and consumerPath (path to the project where the tarball should be installed).
runScriptsbooleannoEnable npm lifecycle scripts during packing. Off by default for security.