Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pftg committed Apr 4, 2024
1 parent 94f4ec0 commit c0d6d62
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vite_ruby/lib/vite_ruby/package_manager/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def command_for(args)
end
end

private
private

def nodejs_runtime?
true
Expand Down
2 changes: 1 addition & 1 deletion vite_ruby/lib/vite_ruby/package_manager/bun.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def add_dependencies_command
'bun install'
end

private
private

def nodejs_runtime?
false
Expand Down
3 changes: 1 addition & 2 deletions vite_ruby/lib/vite_ruby/package_manager/npm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ def add_dependencies_command
'npm install'
end

private
private

# Internal: Resolves to an executable for Vite.
def vite_executable
super || ["#{ `npm bin`.chomp }/vite"]
end

end
end
2 changes: 1 addition & 1 deletion vite_ruby/lib/vite_ruby/package_manager/yarn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def add_dependencies_command
'yarn add'
end

private
private

def vite_executable
super || %w[yarn vite]
Expand Down

0 comments on commit c0d6d62

Please sign in to comment.