Commit 6bdb994

mo khan <mo.khan@gmail.com>
2019-09-02 17:22:09
use yarn bin to detect executable location
1 parent bc4cfb6
Changed files (1)
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