eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.22k stars 868 forks source link

Copying npx scripts for embedded node #1007

Closed vzhyhunou closed 2 years ago

vzhyhunou commented 2 years ago

Summary

Copies npx scripts along with npm ones to be able to run preinstall script from package.json that uses npx.

Resolves #1002

eirslett commented 2 years ago

Thanks! 🥳

rmueller83 commented 1 year ago

Would it make sense to also add this to NodeInstaller.java? We currently suffer from a failing build that uses yarn and a plugin that calls npx during postinstall: https://github.com/TroyAlford/react-jsx-parser/blob/develop/package.json#L83