Skip to content

build: stop shipping docs/ inside the npm package (21.1.x) - #3823

Open
armando-navarro wants to merge 1 commit into
angular:21.1.xfrom
armando-navarro:a27-docs-tarball-21.1.x
Open

armando-navarro wants to merge 1 commit into
angular:21.1.xfrom
armando-navarro:a27-docs-tarball-21.1.x

Conversation

@armando-navarro

Copy link
Copy Markdown
Collaborator

Refs #3809

Cherry-pick of #3811 (0c924da on main) onto 21.1.x, so 21.1.0 also stops shipping the docs/ folder inside the npm package. It applies with no conflicts. Built from this branch, the package has 122 files, none under docs/, and README.md still ships.

tools/build.ts copied the whole docs/ tree into the publish output,
so every release carried 53 Markdown and image files, about 1 MB
unpacked and 42 percent of the compressed tarball, that nothing in
the package reads. The copy dates from the 6.0.0 build script
(angular#2282).

Shipped docs freeze at the installed version while the GitHub copies
move on, and docs/firebase.json inside node_modules has been mistaken
for a config file to point a deploy at. README.md still ships.

Measured on the 22.0.0 build at f95d598: 175 to 122 files, 4,694,110
to 3,663,246 bytes unpacked, 2,021,273 to 1,173,999 bytes compressed.

(cherry picked from commit 0c924da)
@armando-navarro armando-navarro added bump: patch Size of the change: a fix or docs change that reaches users comp: build/pipeline Build, bundling, packaging, release pipeline. type: chore Maintenance with no user-facing behavior change. labels Oct 27, 2026
@armando-navarro armando-navarro added this to the 21.1.0 milestone Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump: patch Size of the change: a fix or docs change that reaches users comp: build/pipeline Build, bundling, packaging, release pipeline. type: chore Maintenance with no user-facing behavior change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants