Skip to content

Commit cd5f987

Browse files
committed
fix bash scripts: enable alias
1 parent 0676295 commit cd5f987

File tree

28 files changed

+28
-0
lines changed

28 files changed

+28
-0
lines changed

integration-tests/adding-and-deleting-files/adding-and-deleting-files.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33

44
echo "add patch-package"
55
yarn add $1
6+
shopt -s expand_aliases # enable alias
67
alias patch-package=./node_modules/.bin/patch-package
78

89
echo "add a file"

integration-tests/broken-patch-file/broken-patch-file.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33

44
echo "add patch-package"
55
yarn add $1
6+
shopt -s expand_aliases # enable alias
67
alias patch-package=./node_modules/.bin/patch-package
78

89
(>&2 echo "SNAPSHOT: patch-package fails when patch file is invalid")

integration-tests/collate-errors/collate-errors.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33

44
echo "add patch-package"
55
yarn add $1
6+
shopt -s expand_aliases # enable alias
67
alias patch-package=./node_modules/.bin/patch-package
78

89
echo "SNAPSHOT: left-pad, lodash, and zfs apply"

integration-tests/create-issue/create-issue.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33

44
echo "add patch-package"
55
yarn add $1
6+
shopt -s expand_aliases # enable alias
67
alias patch-package=./node_modules/.bin/patch-package
78

89
echo "modify left-pad"

integration-tests/custom-patch-dir/custom-patch-dir.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33

44
echo "add patch-package"
55
yarn add $1
6+
shopt -s expand_aliases # enable alias
67
alias patch-package=./node_modules/.bin/patch-package
78

89
echo "modify left-pad"

integration-tests/custom-resolutions/custom-resolutions.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33

44
echo "add patch-package"
55
yarn add $1
6+
shopt -s expand_aliases # enable alias
67
alias patch-package=./node_modules/.bin/patch-package
78

89
echo "make changes to dependency/index.js"

integration-tests/delete-old-patch-files/delete-old-patch-files.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33

44
echo "add patch-package"
55
yarn add $1
6+
shopt -s expand_aliases # enable alias
67
alias patch-package=./node_modules/.bin/patch-package
78

89
echo "apply patch-package"

integration-tests/delete-scripts/delete-scripts.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ set -e
22

33
echo 'install without error because package.json is sanitized'
44
yarn add $1
5+
shopt -s expand_aliases # enable alias
56
alias patch-package=./node_modules/.bin/patch-package
67

78
echo 'unsnitize package.json'

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export NODE_ENV=production
66

77
echo "add patch-package"
88
yarn add $1
9+
shopt -s expand_aliases # enable alias
910
alias patch-package=./node_modules/.bin/patch-package
1011

1112
echo "SNAPSHOT: patch-package happily ignores slash because it's a dev dep"

integration-tests/error-on-fail/error-on-fail.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33

44
echo "add patch-package"
55
yarn add $1
6+
shopt -s expand_aliases # enable alias
67
alias patch-package=./node_modules/.bin/patch-package
78

89
export NODE_ENV="development"

0 commit comments

Comments
 (0)