UNPKG

declapract

Version:

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

16 lines 618 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkExists = void 0; const chalk_1 = __importDefault(require("chalk")); const checkExists = (foundContents) => { if (!foundContents) throw new Error([ chalk_1.default.green('- Expected file to exist'), chalk_1.default.red('+ Received file does not exist'), ].join('\n')); }; exports.checkExists = checkExists; //# sourceMappingURL=checkExists.js.map