diff --git a/packages/schematics/migrations/20180405-add-tools-directory.ts b/packages/schematics/migrations/20180405-add-tools-directory.ts index cdd23a10c0822..ca02322cf2803 100644 --- a/packages/schematics/migrations/20180405-add-tools-directory.ts +++ b/packages/schematics/migrations/20180405-add-tools-directory.ts @@ -4,8 +4,12 @@ import * as path from 'path'; export default { description: 'Add tools directory', run: () => { - mkdirSync('tools'); - mkdirSync(path.join('tools', 'schematics')); + try { + mkdirSync('tools'); + } catch (e) {} + try { + mkdirSync(path.join('tools', 'schematics')); + } catch (e) {} writeFileSync(path.join('tools', 'schematics', '.gitkeep'), ''); } };