Skip to content

Commit

Permalink
fix(tooling): fix mmd local run (#1228)
Browse files Browse the repository at this point in the history
* fix(tooling): fix mmd local run

* fix: set CI env vars

* fix: remove unused env var
  • Loading branch information
hugomrdias authored Oct 19, 2020
1 parent 436e5f2 commit d4311ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/diagrams.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const runMmd = (p) => {
const outFile = path.basename(p).replace('.mmd', '.svg')

fs.mkdirSync(outDir, { recursive: true })

const config = process.env.CI ? ['-p', 'tools/pptr.config'] :[]
return execa('mmdc', [
'-p', 'tools/pptr.config',
...config,
'-i', p,
'-o', path.join(outDir, outFile)
], { preferLocal: true });
Expand Down

0 comments on commit d4311ca

Please sign in to comment.