Skip to content

Commit

Permalink
Merge pull request #1 from rokiyama/feat/support-newer-lockfile-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
anas10 committed Dec 24, 2022
2 parents 66184c6 + 8101504 commit 6e0641f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions integration-tests/lockfile/lockfile.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/usr/bin/env bash

# make sure errors stop the script
set -e

echo "add patch-package"
npm i $1
alias patch-package=./node_modules/.bin/patch-package

echo "Add left-pad"
npm i left-pad@1.3.0

testLockFile() {
echo "Version test $1"
npm i --lockfile-version $1
Expand All @@ -24,9 +25,6 @@ testLockFile() {
test -f patches/left-pad+1.3.0.patch || exit 1
}

echo "test lockfile v1"
testLockFile 1

echo "test lockfile v2"
testLockFile 2

Expand Down

0 comments on commit 6e0641f

Please sign in to comment.