We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6640afc commit ed90c55Copy full SHA for ed90c55
flipper-expressions-schema.gemspec
@@ -7,9 +7,11 @@ Gem::Specification.new do |gem|
7
8
# Ensure schemas are downloaded when installed as a git dependency.
9
# This will be handled by rake when the gem is built and published.
10
- unless File.exist?(SCHEMAS_DIR)
11
- warn "Getting schemas from @flippercloud.io/expressions..."
12
- Dir.chdir(__dir__) { exec "npm install --silent" }
+ Gem.post_install do
+ unless File.exist?(SCHEMAS_DIR)
+ warn "Getting schemas from @flippercloud.io/expressions..."
13
+ Dir.chdir(__dir__) { exec "npm install --silent" }
14
+ end
15
end
16
17
gem.authors = ['John Nunemaker']
0 commit comments