Skip to content

Commit

Permalink
fix: do not install npm deps
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 3, 2025
1 parent 97cc263 commit 4937832
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions licenses/list-licenses
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ bin_dir="$(cd "$(dirname "$0")" && pwd)"
# list Node licenses
if [ -f package.json ]; then
if jq -e '.dependencies and (.dependencies | keys | length > 0)' package.json >/dev/null; then
npm ci --dev >/dev/null 2>&1
npm exec --yes license-checker -- --production --csv --excludePrivatePackages --customPath "${bin_dir}"/license-template-node.json | grep -v '^$'
npx --yes license-checker -- --production --csv --excludePrivatePackages --customPath "${bin_dir}"/license-template-node.json | grep -v '^$'
echo
else
echo "No dependencies found in package.json" >&2
Expand All @@ -26,7 +25,6 @@ if [ -f go.mod ]; then
sort -u |
awk -F/ '{ if ($1 == "github.com" && NF >= 3) { print $1"/"$2"/"$3 } else { print } }' |
sort -u
echo
)
if [ -z "$go_modules" ]; then
echo "No Go modules found" >&2
Expand Down

0 comments on commit 4937832

Please sign in to comment.