Skip to main content

Module dependent_version_publishable

Module dependent_version_publishable 

Source
Expand description

Publishable package names from the generated registry configuration. What: Read the publishable package names from the generated registry configuration (package/config/pnpr/config.yaml). Why: Only published packages receive a dependent bump. The generator writes each name as a single-quoted YAML list item on its own line under packages:, so a line scan reads exactly what it wrote, as the incumbent does (publishable-names.ts:38-81). Lines are trimmed with JavaScript’s String.prototype.trim set of characters.

In TS you’d write (pseudocode):

// readPublishableNames(configText);

Functions§

read_publishable_names
What: The names in the packages: list, in configuration order; nothing when the list is absent. .split('\n') keeps a carriage return on each line, which the trim removes. Why: The generator’s output is the publish set.