UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

13 lines 691 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeDirectoryAsync = void 0; const fs_1 = __importDefault(require("fs")); const util_1 = __importDefault(require("util")); // export these from a separate file to make testing easier (i.e., easier to define the mocks) const mkdir = util_1.default.promisify(fs_1.default.mkdir); const makeDirectoryAsync = async ({ directoryPath, }) => mkdir(directoryPath, { recursive: true }); exports.makeDirectoryAsync = makeDirectoryAsync; //# sourceMappingURL=makeDirAsync.js.map