Skip to content

Commit 912245d

Browse files
committed
Reduce release package size
The current release package contains files that are not required at runtime, such as `.github`, `docs`, and `examples`. ```ruby Dir.chdir(File.expand_path("..", __FILE__)) do %x(git ls-files -z).split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } end => [".gitattributes", ".github/dependabot.yml", ".github/workflows/ci.yml", ".github/workflows/release.yml", ".gitignore", ".rubocop.yml", "AGENTS.md", "CHANGELOG.md", "CODE_OF_CONDUCT.md", "Gemfile", "LICENSE", (snip) ``` This PR removes unnecessary files where possible to reduce the size of the release package.
1 parent 5b04089 commit 912245d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mcp.gemspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ Gem::Specification.new do |spec|
2323
spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
2424
spec.metadata["documentation_uri"] = "https://rubydoc.info/gems/mcp"
2525

26-
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
27-
%x(git ls-files -z).split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28-
end
26+
spec.files = Dir["LICENSE", "README.md", "lib/**/*"]
2927

3028
spec.bindir = "exe"
3129
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

0 commit comments

Comments
 (0)