Skip to content

Commit 4b4d9f8

Browse files
committed
fix dev-only-patches snapshot generation
1 parent 50f73bd commit 4b4d9f8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

integration-tests/dev-only-patches/dev-only-patches.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ export NODE_ENV=production
66

77
echo "add patch-package"
88
yarn add $1
9+
alias patch-package=./node_modules/.bin/patch-package
910

1011
echo "SNAPSHOT: patch-package happily ignores slash because it's a dev dep"
11-
npx patch-package
12+
patch-package
1213
echo "END SNAPSHOT"
1314

1415
echo "create fake-package+3.0.0.patch"
1516
cp patches/slash+3.0.0.patch patches/fake-package+3.0.0.patch
1617

1718
(>&2 echo "SNAPSHOT: patch-package fails to find fake-package")
18-
if npx patch-package
19+
if patch-package
1920
then
2021
exit 1
2122
fi
@@ -25,5 +26,5 @@ echo "rename fake-package patch file to .dev.patch"
2526
mv patches/fake-package+3.0.0.patch patches/fake-package+3.0.0.dev.patch
2627

2728
echo "SNAPSHOT: fake-package should be skipped"
28-
npx patch-package
29+
patch-package
2930
echo "END SNAPSHOT"

0 commit comments

Comments
 (0)