Since https://github.com/mdn/yari/pull/10953, yarn tool spas no longer builds index.html files, and these are instead built via yarn render:html, but this command isn't run when packaging yari for npm.
Solution
Run yarn render:html as part of the prepack script.
How did you test this change?
Fixed the npm-published-simulation.yml workflow to actually fail when http://localhost:5042/en-US/ returns an HTTP error.
Summary
Fixes #11365.
Problem
Since https://github.com/mdn/yari/pull/10953,
yarn tool spas
no longer buildsindex.html
files, and these are instead built viayarn render:html
, but this command isn't run when packaging yari for npm.Solution
Run
yarn render:html
as part of theprepack
script.How did you test this change?
Fixed the
npm-published-simulation.yml
workflow to actually fail when http://localhost:5042/en-US/ returns an HTTP error.