Skip to content

Commit ac8dd07

Browse files
authored
Merge pull request #163 from advanced-security/lcartey/npm-install
cds extractor: npm install in each `package.json`
2 parents 5dec654 + dd52d5d commit ac8dd07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extractors/cds/tools/index-files.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ then
3636
# directory.
3737
#
3838
# We also ensure we skip node_modules, as we can end up in a recursive loop
39-
find . -type d -name node_modules -prune -false -o -type f \( -iname 'package.json' \) -exec grep -ql '@sap/cds' {} \; -execdir bash -c "grep -q \"^\$(pwd)\(/\|$\)\" \"$response_file\"" \; -execdir bash -c "echo \"Installing @sap/cds-dk into \$(pwd) to enable CDS compilation.\"" \; -execdir npm install --silent @sap/cds-dk \;
39+
find . -type d -name node_modules -prune -false -o -type f \( -iname 'package.json' \) -exec grep -ql '@sap/cds' {} \; -execdir bash -c "grep -q \"^\$(pwd)\(/\|$\)\" \"$response_file\"" \; -execdir bash -c "echo \"Installing @sap/cds-dk into \$(pwd) to enable CDS compilation.\"" \; -execdir npm install --silent @sap/cds-dk \; -execdir npm install --silent \;
4040

4141
# Use the npx command to dynamically install the cds development kit (@sap/cds-dk) package if necessary,
4242
# which then provides the cds command line tool in directories which are not covered by the package.json

0 commit comments

Comments
 (0)