fix(build): fix lstatSync throwing

This commit is contained in:
Evan Morikawa 2016-04-25 16:18:23 -07:00
parent 6a55717157
commit c416731d35

View file

@ -18,6 +18,7 @@ module.exports = (grunt) ->
from = path.join(rootDir, 'packages', plugin)
to = path.join(path.resolve('internal_packages'), plugin)
try
if fs.lstatSync(to)
grunt.log.writeln "Removing old symlink at #{to}"
fs.unlinkSync(to)