-
Notifications
You must be signed in to change notification settings - Fork 975
docs: Fix docgen script to clean out package temp folders first #9250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1This report is too large (106,637 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.Test Logs |
The docgen script starts by running a build on all packages which generates a
packages/[name of package]/temp/
directory in each package dir, which contain*.api.json
files. Later on, the script sweeps all these up into a top leveltemp/
directory which it uses to generate the docs. The docgen script deletes the top-level directory every time before it runs but not the individual package dirs.That means that leftover api.json files from other branches, etc. might be hanging around since
temp/
dirs are gitignored by us, and this causes some confusion when old docs or docs from other packages end up in PRs after runningyarn docgen:all
. This fixes it by cleaning out all the package temp dirs before running the build for docgen.