Skip to content

Commit

Permalink
fix: check if dependency graph file exists before trying to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
sghoweri committed Nov 17, 2019
1 parent 9416975 commit f9af6a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/uikit-workshop/build-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ const path = require('path');
const fs = require('fs-extra');

fs.mkdirp('./node_modules/@pattern-lab/');
fs.unlinkSync('./dependencyGraph.json');
// clear any previously generated dependency graph files if present
if (fs.existsSync('./dependencyGraph.json')) {
fs.unlinkSync('./dependencyGraph.json');
}
fs.ensureSymlink(__dirname, './node_modules/@pattern-lab/uikit-workshop');

const configKeysEndingWithASlash = [
Expand Down

0 comments on commit f9af6a9

Please sign in to comment.