File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
integration-tests/dev-only-patches Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,17 @@ export NODE_ENV=production
6
6
7
7
echo " add patch-package"
8
8
yarn add $1
9
+ alias patch-package=./node_modules/.bin/patch-package
9
10
10
11
echo " SNAPSHOT: patch-package happily ignores slash because it's a dev dep"
11
- npx patch-package
12
+ patch-package
12
13
echo " END SNAPSHOT"
13
14
14
15
echo " create fake-package+3.0.0.patch"
15
16
cp patches/slash+3.0.0.patch patches/fake-package+3.0.0.patch
16
17
17
18
(>&2 echo " SNAPSHOT: patch-package fails to find fake-package" )
18
- if npx patch-package
19
+ if patch-package
19
20
then
20
21
exit 1
21
22
fi
@@ -25,5 +26,5 @@ echo "rename fake-package patch file to .dev.patch"
25
26
mv patches/fake-package+3.0.0.patch patches/fake-package+3.0.0.dev.patch
26
27
27
28
echo " SNAPSHOT: fake-package should be skipped"
28
- npx patch-package
29
+ patch-package
29
30
echo " END SNAPSHOT"
You can’t perform that action at this time.
0 commit comments