Skip to content

Commit

Permalink
Unnecessary npmw variables (#26436)
Browse files Browse the repository at this point in the history
* More modern way

* PATH, NPM_EXE and NODE_EXE are set to something else right after. No need to set them here
  • Loading branch information
henri-tremblay authored Jun 16, 2024
1 parent 51b0eb2 commit ca3f485
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions generators/java/generators/node/templates/npmw
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
#!/bin/sh

basedir=`dirname "$0"`
basedir=$(dirname "$0")

if [ -f "$basedir/mvnw" ]; then
bindir="$basedir/target/node"
repodir="$basedir/target/node/node_modules"
installCommand="$basedir/mvnw --batch-mode -ntp -Pwebapp frontend:install-node-and-npm@install-node-and-npm"

PATH="$basedir/$builddir/:$PATH"
NPM_EXE="$basedir/$builddir/node_modules/npm/bin/npm-cli.js"
NODE_EXE="$basedir/$builddir/node"
elif [ -f "$basedir/gradlew" ]; then
bindir="$basedir/build/node/bin"
repodir="$basedir/build/node/lib/node_modules"
Expand Down

0 comments on commit ca3f485

Please sign in to comment.