Skip to content

Commit 4ce7b27

Browse files
committed
fix list-demo-lib-chunks.sh
1 parent d0c5749 commit 4ce7b27

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/list-demo-lib-chunks.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ if [[ "${1:-}" = "--md-simple" ]]; then
1111
fi
1212

1313
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
14-
DIST_DIR="${SCRIPT_DIR}/../dist/assets"
14+
DEMO_ASSETS_DIR="${SCRIPT_DIR}/../build/demo/dev/public/assets"
1515

16-
if [[ ! -d "$DIST_DIR" ]]; then
17-
echo "Error: dist/assets directory not found. Run 'npm run build -w packages/demo' first." >&2
16+
if [[ ! -d "$DEMO_ASSETS_DIR" ]]; then
17+
echo "Error: demo assets directory not found. Run 'npm run demo:build." >&2
1818
exit 1
1919
fi
2020

2121
# Collect lib chunks with their size in KB
2222
declare -a names=()
2323
declare -a sizes=()
2424

25-
for file in "$DIST_DIR"/lib-*.js; do
25+
for file in "$DEMO_ASSETS_DIR"/lib-*.js; do
2626
[[ -f "$file" ]] || continue
2727
filename=$(basename "$file")
2828
# Extract dependency name: lib-<name>-<hash>.js -> <name>

0 commit comments

Comments
 (0)