summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-09-02 11:22:09 -0600
committermo khan <mo.khan@gmail.com>2019-09-02 11:22:09 -0600
commit6bdb994ce5627faa3679eaf73be8ad049c0cc77a (patch)
treea0a0888b55ec443dc283858647b9900537e45e6d
parentbc4cfb60ffe4bb75a0fb90c0b98ba7220339a724 (diff)
use yarn bin to detect executable location
-rw-r--r--Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index ba62587..bb46eea 100644
--- a/Rakefile
+++ b/Rakefile
@@ -26,10 +26,11 @@ def run_cli(selection = nil)
end
task(:pdf) do
+ mdpdf = `yarn bin mdpdf`.chomp
Dir.chdir(__dir__) do
readmes = (Dir["src/**/*.md"] + ['README.md']).sort
readmes.each do |file|
- sh "node ./node_modules/.bin/mdpdf #{file}"
+ sh "node #{mdpdf} #{file}"
end
end
end