Skip to content

docs: document embedding and pruning for private packages [RED-1310] - #754

Open
sorccu wants to merge 8 commits into
mainfrom
simo/RED-1310-dependency-bundling-docs
Open

sorccu wants to merge 8 commits into
mainfrom
simo/RED-1310-dependency-bundling-docs

Conversation

@sorccu

@sorccu sorccu commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Linear: RED-1310

Adds Private Packages and Internal Registries (detect/synthetic-monitoring/playwright-checks/internal-registries), next to Custom Dependencies in the Playwright Check Suites nav. It documents CLI options for projects whose private packages come from a registry Checkly runners can't reach. None of these options were documented before:

  • bundle.packages.embed: ship private package tarballs inside the code bundle
  • Automatic lockfile pruning, plus CHECKLY_LOCKFILE_PRUNE and CHECKLY_LOCKFILE_PRUNE_TIMEOUT
  • bundle.packages.prune: remove dependencies from the bundled package.json files, including member-scoped remove/keep entries
  • runner.registries: route the runner's install to registries it can reach

The page also covers using pruning to speed up dependency installs in any project, for example by pruning linters and Storybook from the bundled package.json. It explains how each option treats dependencies of dependencies. Every config snippet is followed by what it does, and an Examples section walks through two complete setups: a pnpm monorepo with an internal registry, and a private scope behind a VPN-only mirror.

Custom Dependencies is updated to match current CLI behaviour:

  • .npmrc files are bundled automatically, so the checks.include step is removed.
  • bun is listed as a supported package manager.
  • The dependency cache section lists the current invalidation inputs and documents runner.cache.install.version and --refresh-cache for forcing a reinstall.

It also links to the new page, including from the caching section and the installation timeout and memory troubleshooting entries. The checkly.config.ts reference in constructs/project.mdx has bundle and runner rows pointing to the relevant sections.

Affected Components

  • Content & Marketing
  • Pricing
  • Test
  • Docs
  • Learn
  • Other

Notes for the Reviewer

  • The content follows the CLI's own config documentation (checkly-config-loader.ts JSDoc). The pages describe the latest CLI only, without version notes.
  • Every checkly.config.ts example type-checks against checkly@10.0.0.
  • The embed and prune behaviour was run against pnpm workspaces with checkly@10.0.0, including one built like the monorepo example with public stand-in packages. Results:
    • A transitive-only package can be embedded, and embedding a package doesn't embed its dependencies.
    • Pruning a dependency drops its own dependencies from the bundled lockfile and from embedding.
    • Out-of-bundle members' dependencies are not embedded.
    • A pattern that also matches a depended-on workspace member warns on every run, and a ! exclusion silences the warning.
  • Install-speed effect: in a single-package pnpm project, removing eslint and typescript from devDependencies cut the regenerated lockfile from 496 to 380 packages. The docs don't quote a number, since it depends on the project.
  • Embedded packages are installed from the code bundle, so they need no registry credentials in Checkly. npm 10 and pnpm 10 also install cleanly when the bundled .npmrc references a token variable that isn't set.
  • The Yarn Berry note ("looks them up in your registry's package metadata each time it bundles your checks") describes current CLI behaviour. RED-1311 tracks caching that lookup, after which the note can go.
  • The "Yarn workspaces remain unsupported" sentence in Custom Dependencies is unchanged. The CLI discovers Yarn workspaces, but I couldn't confirm runner support.
  • The pages render under mint dev. The frontmatter check, the regenerated sitemap and the broken-links check all pass.

🤖 Generated with Claude Code

…ht Check Suites (RED-1310)

Add a page covering bundle.packages.embed, automatic lockfile pruning
(CHECKLY_LOCKFILE_PRUNE, CHECKLY_LOCKFILE_PRUNE_TIMEOUT),
bundle.packages.prune and runner.registries, framed around private
packages from internal registries Checkly cannot reach. Link it from
Custom Dependencies and the project config reference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
checkly-422f444a 🟢 Ready View Preview Oct 29, 2026, 7:07 AM

sorccu and others added 2 commits October 29, 2026 14:42
…ncies (RED-1310)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd the cache version (RED-1310)

The CLI bundles .npmrc files automatically since CLI version 8.15.0, so
the checks.include step now only applies to older versions. Add bun to
the supported package managers, list the current dependency cache
inputs, and document runner.cache.install.version and --refresh-cache
for forcing a reinstall.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Explain what each embed, prune and runner.registries snippet does, fix
the member-scoped keep example to target a library member instead of
the test member, and add complete examples for a pnpm monorepo with an
internal registry and for a private scope behind a VPN-only mirror.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1310)

Add a section with an example that prunes development tooling from the
bundled package.json files, and link to it from the Custom Dependencies
caching and troubleshooting sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop the "Available since" CLI version callouts and the instructions
for older CLI versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Checkly (RED-1310)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-1310)

Describe the lockfile-pruning case by the shared lockfile, merge the two
bundle.packages.prune rows, and say the Yarn Berry metadata lookup runs
whenever checks are bundled while tarball downloads stay cached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
staging — 4466eb22 Deployed Oct 29, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant