UNPKG

@auto-canary/cocoapods

Version:

Use auto to version your cocoapod

26 lines 995 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const path_1 = tslib_1.__importDefault(require("path")); const fs_1 = tslib_1.__importDefault(require("fs")); /** * Retrieves the contents of the podspec file * * @param podspecPath - The relative path to the podspec file * @returns A string that is the contents of the file */ function getPodspecContents(podspecPath) { return fs_1.default.readFileSync(path_1.default.join(process.cwd(), podspecPath)).toString(); } exports.getPodspecContents = getPodspecContents; /** * Write the podspec file contents * * @param podspecPath - The relative path to the podspec file * @param contents - The contents to write to the podspec path */ function writePodspecContents(podspecPath, contents) { fs_1.default.writeFileSync(path_1.default.join(process.cwd(), podspecPath), contents); } exports.writePodspecContents = writePodspecContents; //# sourceMappingURL=utilities.js.map