Commit 50cb189 1 parent f7c8974 commit 50cb189 Copy full SHA for 50cb189
File tree 4 files changed +23
-3
lines changed
4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -2512,7 +2512,10 @@ orbs:
2512
2512
no_output_timeout : 2m
2513
2513
- run-with-retry :
2514
2514
label : Install AmplifyJS
2515
- command : npm i -S aws-amplify && npm i -g wait-on serve
2515
+ command : |
2516
+ npm i -S aws-amplify
2517
+ npm i -g wait-on serve
2518
+ ~/amplify-js/.circleci/duplicates-npm.sh
2516
2519
- run :
2517
2520
name : Call Amplify library in code
2518
2521
command : |
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # This script detects duplicated Amplify dependencies in the dependency graph (with NPM)
4
+ duplicatedDependencies=$(
5
+ npm ls -all 2> /dev/null | \
6
+ grep -o -e ' @\?aws-amplify[^ ]*' | \
7
+ sort | uniq | \
8
+ sed -E ' s/^(@?[^@]+).*$/\1/g' | \
9
+ uniq -d | sort
10
+ )
11
+
12
+ if [ ! " $duplicatedDependencies " ]; then
13
+ echo " No duplicated Amplify dependencies detected."
14
+ else
15
+ echo " Duplicated Amplify dependencies detected: $duplicatedDependencies "
16
+ false
17
+ fi
Original file line number Diff line number Diff line change 9
9
"bootstrap" : " lerna bootstrap" ,
10
10
"test" : " lerna run test --stream" ,
11
11
"test:size" : " lerna run test:size" ,
12
- "test:duplicates" : " ./scripts/duplicates.sh" ,
12
+ "test:duplicates" : " ./scripts/duplicates-yarn .sh" ,
13
13
"cypress" : " lerna run cypress" ,
14
14
"cypress:open" : " lerna run cypress:open" ,
15
15
"coverage" : " codecov || exit 0" ,
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- # This script detects duplicated Amplify dependencies in the dependency graph
3
+ # This script detects duplicated Amplify dependencies in the dependency graph (with Yarn)
4
4
duplicatedDependencies=$(
5
5
yarn list --pattern amplify |
6
6
grep -o -e ' @\?aws-amplify[^ ]*' |
You can’t perform that action at this time.
0 commit comments