Commit 488f829 1 parent b713f3c commit 488f829 Copy full SHA for 488f829
File tree 6 files changed +66
-57
lines changed
6 files changed +66
-57
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # This script checks that the prerequisite
3
+ # pnpm is installed
4
+
5
+ if ! command -v pnpm & > /dev/null
6
+ then
7
+ echo " **pnpm not installed**"
8
+ echo " execute the following command:"
9
+ echo " npm install pnpm -g"
10
+ echo
11
+ exit 1 # failure
12
+ else
13
+ echo " pnpm is installed"
14
+ fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # This script checks that the prerequisite
3
+ # yarn is installed
4
+
5
+ if ! command -v yarn & > /dev/null
6
+ then
7
+ echo " **yarn not installed**"
8
+ echo " execute the following command:"
9
+ echo " npm install yarn -g"
10
+ echo
11
+ exit 1 # failure
12
+ else
13
+ echo " yarn is installed"
14
+ fi
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e # fail on error
3
+ #
4
+ # Examples using the pnpm package manager are
5
+ # updated to Cypress latest version
6
+ #
7
+ # Make sure that pnpm is installed
8
+ ./scripts/check-package-manager-pnpm.sh
9
+
10
+ echo updating pnpm examples to Cypress latest version
11
+ cd examples
12
+
13
+ # examples/basic-pnpm (pnpm)
14
+ echo
15
+ echo updating examples/basic-pnpm to cypress@latest
16
+ cd basic-pnpm
17
+ pnpm add cypress@latest --save-dev --save-exact
18
+ pnpm ls cypress
19
+ cd ..
20
+
21
+ # examples/start-and-pnpm-workspaces
22
+ echo
23
+ echo updating pnpm workspaces example to Cypress latest version
24
+ echo
25
+ echo updating examples/start-and-pnpm-workspaces to cypress@latest
26
+ cd start-and-pnpm-workspaces
27
+ pnpm update cypress --latest --recursive
28
+ pnpm ls cypress --recursive
29
+ cd ..
30
+
31
+ cd ..
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e # fail on error
3
3
#
4
- # Examples using yarn and pnpm package managers are
4
+ # Examples using the yarn package manager are
5
5
# updated to Cypress latest version
6
6
#
7
- # Make sure that pnpm and yarn are installed
8
- ./scripts/check-package-managers-other .sh
7
+ # Make sure that yarn is installed
8
+ ./scripts/check-package-manager-yarn .sh
9
9
10
10
echo updating yarn examples to Cypress latest version
11
11
cd examples
@@ -53,24 +53,4 @@ yarn set version latest
53
53
yarn add cypress --dev --exact
54
54
cd ..
55
55
56
- # examples/basic-pnpm (pnpm)
57
- echo
58
- echo updating pnpm example to Cypress latest version
59
- echo
60
- echo updating examples/basic-pnpm to cypress@latest
61
- cd basic-pnpm
62
- pnpm add cypress@latest --save-dev --save-exact
63
- pnpm ls cypress
64
- cd ..
65
-
66
- # examples/start-and-pnpm-workspaces
67
- echo
68
- echo updating pnpm workspaces example to Cypress latest version
69
- echo
70
- echo updating examples/start-and-pnpm-workspaces to cypress@latest
71
- cd start-and-pnpm-workspaces
72
- pnpm update cypress --latest --recursive
73
- pnpm ls cypress --recursive
74
- cd ..
75
-
76
56
cd ..
Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ set -e # fail on error
11
11
#
12
12
# First check if the required package managers are installed
13
13
./scripts/check-package-manager-npm.sh
14
- ./scripts/check-package-managers-other.sh
14
+ ./scripts/check-package-manager-yarn.sh
15
+ ./scripts/check-package-manager-pnpm.sh
15
16
# then proceed to updating the examples
16
17
echo
17
18
./scripts/update-cypress-latest-npm.sh
18
- ./scripts/update-cypress-latest-other.sh
19
+ ./scripts/update-cypress-latest-yarn.sh
20
+ ./scripts/update-cypress-latest-pnpm.sh
19
21
20
22
echo
21
23
echo please manually edit run command in
You can’t perform that action at this time.
0 commit comments