UNPKG

declapract

Version:

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

10 lines 686 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fixContainsWhenFileDoesntExistBySettingDeclaredContents = void 0; const fixContainsWhenFileDoesntExistBySettingDeclaredContents = (contents, context) => { if (contents) return {}; // do nothing if it already has contents; we can't actually fix it in this case return { contents: context.declaredFileContents }; // i.e., create a file with that content when file doesn't exist }; exports.fixContainsWhenFileDoesntExistBySettingDeclaredContents = fixContainsWhenFileDoesntExistBySettingDeclaredContents; //# sourceMappingURL=fixContainsWhenFileDoesntExistBySettingDeclaredContents.js.map