function validatePackageManifestVersion(manifest, manifestDirPath) {
    if (!hasValidVersionField(manifest)) {
        throw new Error(`${getManifestErrorMessagePrefix(ManifestFieldNames.Version, manifest, manifestDirPath)} is not a valid SemVer version: ${manifest[ManifestFieldNames.Version]}`);
    }
    return manifest;
}
/**
 * Validates the "version" field of a package manifest object, i.e. a parsed
 * "package.json" file.
 *
 * @param manifest - The manifest to validate.
 * @param manifestDirPath - The path to the directory containing the
 * manifest file relative to the root directory.
 * @returns The unmodified manifest, with the "version" field typed correctly.
 */
Validates the "version" field of a package manifest object, i.e.

@param manifest - The manifest to validate.
@param manifestDirPath - The path to the directory containing the
manifest file relative to the root directory.
@returns The unmodified manifest, with the "version" field typed correctly.
Validates the " version " field of a package manifest object i . e . @param manifest - The manifest to validate . @param manifestDirPath - The path to the directory containing the manifest file relative to the root directory . @returns The unmodified manifest with the " version " field typed correctly .
function validatePackageManifestVersion(manifest, manifestDirPath) {
    if (!hasValidVersionField(manifest)) {
        throw new Error(`${getManifestErrorMessagePrefix(ManifestFieldNames.Version, manifest, manifestDirPath)} is not a valid SemVer version: ${manifest[ManifestFieldNames.Version]}`);
    }
    return manifest;
}
function validatePackageManifestVersion ( manifest , manifestDirPath ) { if ( ! hasValidVersionField ( manifest ) ) { throw new Error ( ` ${ getManifestErrorMessagePrefix ( ManifestFieldNames . Version , manifest , manifestDirPath ) } ${ manifest [ ManifestFieldNames . Version ] } ` ) ; } return manifest ; }
Validates the "version" field of a package manifest object, i.e.
Validates the " version " field of a package manifest object i . e .