Skip to content

Commit

Permalink
repomix 0.2.6
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 29, 2024
1 parent 330b93b commit 517e8c2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2642,6 +2642,7 @@ remind
renovate
replxx
repo
repomix
reposurgeon
repren
reproc
Expand Down
21 changes: 15 additions & 6 deletions Formula/r/repomix.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
class Repomix < Formula
desc "Pack repository contents into a single AI-friendly file"
homepage "https://github.com/yamadashy/repomix"
url "https://registry.npmjs.org/repomix/-/repomix-0.2.1.tgz"
sha256 "9fd247249747d94215925ad7a58fc29df56ba3adb018e0c5213ba5e38819dde1"
url "https://registry.npmjs.org/repomix/-/repomix-0.2.6.tgz"
sha256 "18cb7b4453a5935d02565d0443978407cb972e442b06315b880d10c85755a612"
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, all: "4e98557fe499a1152cf9a9993c3043cd5c90812b8a7741a25d8927bb4cd7b206"
end

depends_on "node"

on_linux do
depends_on "xsel"
end

def install
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]

clipboardy_fallbacks_dir = libexec/"lib/node_modules/#{name}/node_modules/clipboardy/fallbacks"
rm_r(clipboardy_fallbacks_dir) # remove pre-built binaries
if OS.linux?
linux_dir = clipboardy_fallbacks_dir/"linux"
linux_dir.mkpath
# Replace the vendored pre-built xsel with one we build ourselves
ln_sf (Formula["xsel"].opt_bin/"xsel").relative_path_from(linux_dir), linux_dir
end
end

test do
Expand Down

0 comments on commit 517e8c2

Please sign in to comment.