Skip to content

Commit 59ab9f9

Browse files
authored
fix(package): run render:html on prepack (#11368)
* fix(npm-published-simulation): curl with --fail * fix(package): run render:html on prepack Ensures that `index.html` files are built and packaged.
1 parent 1d824aa commit 59ab9f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: .github/workflows/npm-published-simulation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ jobs:
9191
curl --retry-connrefused --retry 5 -I http://localhost:5042
9292
9393
# Basically, test if it 200 OKs. If not, this'll exit non-zero.
94-
curl http://localhost:5042/en-US/ > /dev/null
95-
curl http://localhost:5042/en-US/docs/MDN/Kitchensink > /dev/null
94+
curl --fail http://localhost:5042/en-US/ > /dev/null
95+
curl --fail http://localhost:5042/en-US/docs/MDN/Kitchensink > /dev/null
9696
9797
- name: Test viewing the dev server
9898
env:

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"install:all:npm": "find . -mindepth 2 -name 'package-lock.json' ! -wholename '**/node_modules/**' -print0 | xargs -n1 -0 sh -cx 'npm --prefix $(dirname $0) install'",
3737
"jest": "node --experimental-vm-modules --expose-gc ./node_modules/.bin/jest --logHeapUsage",
3838
"m2h": "cross-env NODE_OPTIONS='--no-warnings=ExperimentalWarning --loader ts-node/esm' node markdown/m2h/cli.ts",
39-
"prepack": "yarn build:dist",
39+
"prepack": "yarn render:html && yarn build:dist",
4040
"prepare": "(husky || true) && yarn install:all && yarn install:all:npm",
4141
"prettier-check": "prettier --check .",
4242
"prettier-format": "prettier --write .",

0 commit comments

Comments
 (0)