Skip to content

Commit 1879190

Browse files
committed
fixup
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
1 parent 8de8b7d commit 1879190

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

build/artifacts/generate.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ set -e
1414

1515
SCRIPT_DIR=$(dirname "$0")
1616
ROOT_DIR=$(realpath "$SCRIPT_DIR/../..")
17-
ARTIFACTS_LOCK_YAML="./$SCRIPT_DIR/artifacts.lock.yaml"
18-
ALL_PACKAGES_LOCK_JSON="./$SCRIPT_DIR/package-lock.json"
19-
ALL_PACKAGES_JSON="./$SCRIPT_DIR/package.json"
17+
ARTIFACTS_LOCK_YAML="$SCRIPT_DIR/artifacts.lock.yaml"
18+
ALL_PACKAGES_LOCK_JSON="$SCRIPT_DIR/package-lock.json"
19+
ALL_PACKAGES_JSON="$SCRIPT_DIR/package.json"
2020

2121
makeArtifactsLockYaml () {
2222
rm -f $ARTIFACTS_LOCK_YAML
@@ -88,7 +88,7 @@ makeAllPackageLockJson () {
8888
jq '. | del(.packages)' package-lock.json > "${ALL_PACKAGES_LOCK_JSON}"
8989

9090
# Iterate over all package-lock.json files in the project
91-
find . -name "package-lock.json" ! -path "${ALL_PACKAGES_LOCK_JSON}" | while read -r file; do
91+
find . -name "package-lock.json" -not -path "./build/*" | while read -r file; do
9292
echo "[INFO] Processing file: $file"
9393

9494
# 1. Extract packages and remove empty one

0 commit comments

Comments
 (0)