Skip to content

pack_and_copy

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

Wraps polygraph _pack-and-copy to build and pack each publisher package, then install 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.

NameTypeRequiredDescription
sessionIdstringyesThe Polygraph 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.