Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: check if dependency graph file exists before trying to remove
  • Loading branch information
sghoweri authored Nov 17, 2019
commit f9af6a95025a22041e7ff8a4bfb19e4727385e98
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