Skip to content

Commit

Permalink
Try running with real npm
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdracz committed Jan 8, 2025
1 parent fce6a8b commit f2759cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/generator_specs/fake-bin/npm2
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env ruby

binary = "npm"
major_version = "10.9.2"

unless ENV["SHAKAPACKER_EXPECTED_PACKAGE_MANGER"] == binary
raise StandardError, "(#{binary}) this is not the package manager you're looking for..."
end

exec("npx", "-y", "#{binary}@#{major_version}", *ARGV)

0 comments on commit f2759cb

Please sign in to comment.