Skip to content

Commit

Permalink
fix: Fixing cache load step breaking when no lock file is detected (#200
Browse files Browse the repository at this point in the history
)

Co-authored-by: Eric Ribeiro <ericribeiro@outlook.com.br>
  • Loading branch information
dotkas and EricRibeiro authored Dec 14, 2023
1 parent c543817 commit d25a565
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/packages/determine-lockfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ elif [ -f "npm-shrinkwrap.json" ]; then
elif [ -f "yarn.lock" ]; then
echo "Found yarn.lock file, assuming lockfile"
cp yarn.lock "$TARGET_DIR"/node-project-lockfile
else
echo "Found no lockfile, adding empty one"
touch "$TARGET_DIR"/node-project-lockfile
fi

cp package.json "$TARGET_DIR"/node-project-package.json

0 comments on commit d25a565

Please sign in to comment.