@nrwl/schematics
Version:
19 lines (18 loc) • 490 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = require("fs");
const path = require("path");
exports.default = {
description: 'Add tools directory',
run: () => {
try {
fs_1.mkdirSync('tools');
}
catch (e) { }
try {
fs_1.mkdirSync(path.join('tools', 'schematics'));
}
catch (e) { }
fs_1.writeFileSync(path.join('tools', 'schematics', '.gitkeep'), '');
}
};