UNPKG

@prismatic-io/spectral

Version:

Utility library for building Prismatic connectors and code-native integrations

22 lines (21 loc) 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeComponentManifest = void 0; const fs_1 = require("fs"); const removeComponentManifest = ({ destinationDir, verbose, }) => { if (verbose) { console.info("Removing existing component manifest files..."); } try { if ((0, fs_1.existsSync)(destinationDir)) { (0, fs_1.rmSync)(destinationDir, { recursive: true, force: true }); } } catch (err) { console.error(err); } if (verbose) { console.info(""); } }; exports.removeComponentManifest = removeComponentManifest;