UNPKG

salesforce-alm

Version:

This package contains tools, and APIs, for an improved salesforce.com developer experience.

22 lines (20 loc) 961 B
"use strict"; /* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CustomPageWeblinkMetadataType = void 0; const path = require("path"); const defaultMetadataType_1 = require("./defaultMetadataType"); const MetadataRegistry = require("../metadataRegistry"); class CustomPageWeblinkMetadataType extends defaultMetadataType_1.DefaultMetadataType { getMdapiFormattedMetadataFileName(metadataFilePath) { const fileName = path.basename(metadataFilePath); return fileName.replace(`.${this.typeDefObj.ext}${MetadataRegistry.getMetadataFileExt()}`, '.weblink'); } } exports.CustomPageWeblinkMetadataType = CustomPageWeblinkMetadataType; //# sourceMappingURL=customPageWeblinkMetadataType.js.map