Skip to content

Commit

Permalink
fix(package): run render:html on prepack (#11368)
Browse files Browse the repository at this point in the history
* fix(npm-published-simulation): curl with --fail

* fix(package): run render:html on prepack

Ensures that `index.html` files are built and packaged.
  • Loading branch information
caugner authored Jun 26, 2024
1 parent 1d824aa commit 59ab9f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-published-simulation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ jobs:
curl --retry-connrefused --retry 5 -I http://localhost:5042
# Basically, test if it 200 OKs. If not, this'll exit non-zero.
curl http://localhost:5042/en-US/ > /dev/null
curl http://localhost:5042/en-US/docs/MDN/Kitchensink > /dev/null
curl --fail http://localhost:5042/en-US/ > /dev/null
curl --fail http://localhost:5042/en-US/docs/MDN/Kitchensink > /dev/null
- name: Test viewing the dev server
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"install:all:npm": "find . -mindepth 2 -name 'package-lock.json' ! -wholename '**/node_modules/**' -print0 | xargs -n1 -0 sh -cx 'npm --prefix $(dirname $0) install'",
"jest": "node --experimental-vm-modules --expose-gc ./node_modules/.bin/jest --logHeapUsage",
"m2h": "cross-env NODE_OPTIONS='--no-warnings=ExperimentalWarning --loader ts-node/esm' node markdown/m2h/cli.ts",
"prepack": "yarn build:dist",
"prepack": "yarn render:html && yarn build:dist",
"prepare": "(husky || true) && yarn install:all && yarn install:all:npm",
"prettier-check": "prettier --check .",
"prettier-format": "prettier --write .",
Expand Down

0 comments on commit 59ab9f9

Please sign in to comment.