Skip to content

Commit d094e62

Browse files
fix: Correct --yes flag position in npx commands (#712)
Co-authored-by: Maryam Khidir <[email protected]>
1 parent 9be2868 commit d094e62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/vend-prep.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ show_usage() {
3535

3636
# Function to prepare for vending (copy files)
3737
pre_vend() {
38-
npx @aws-amplify/cli codegen --yes
39-
npx rimraf lib/**/*.js.map
40-
npx rimraf ./**/node_modules
38+
npx --yes @aws-amplify/cli codegen
39+
npx --yes rimraf lib/**/*.js.map
40+
npx --yes rimraf ./**/node_modules
4141

4242
# Check if module directory exists
4343
if [ ! -d "$MODULE_DIR" ]; then

0 commit comments

Comments
 (0)