diff options
| author | mo khan <mo.khan@gmail.com> | 2019-09-02 11:22:09 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2019-09-02 11:22:09 -0600 |
| commit | 6bdb994ce5627faa3679eaf73be8ad049c0cc77a (patch) | |
| tree | a0a0888b55ec443dc283858647b9900537e45e6d | |
| parent | bc4cfb60ffe4bb75a0fb90c0b98ba7220339a724 (diff) | |
use yarn bin to detect executable location
| -rw-r--r-- | Rakefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
