Skip to content

Commit d565968

Browse files
committed
chore(scripts): run build before recording demo
1 parent abe0d71 commit d565968

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/record-demo.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ echo ""
2929
# Make sure we're in the project root
3030
cd "$(dirname "$0")/.."
3131

32+
npm run build
33+
3234
# Record the demo
3335
asciinema rec "$OUTPUT_FILE" \
3436
--overwrite \
3537
--cols 100 \
3638
--rows 60 \
3739
--title "modestbench Getting Started Demo" \
38-
--command "modestbench run examples/bench/advanced-operations.bench.js --iterations 1000 --warmup 100"
40+
--command "node ./dist/cli/index.js run examples/bench/advanced-operations.bench.js --iterations 1000 --warmup 100"
3941

4042
echo ""
4143
echo "Recording saved to: $OUTPUT_FILE"

0 commit comments

Comments
 (0)