async function updatePackage(packageMetadata, updateSpecification, rootDir = WORKSPACE_ROOT) {
    await Promise.all([
        (0,dist.writeJsonFile)(external_path_default().join(rootDir, packageMetadata.dirPath, MANIFEST_FILE_NAME), getUpdatedManifest(packageMetadata.manifest, updateSpecification)),
        updateSpecification.shouldUpdateChangelog
            ? updatePackageChangelog(packageMetadata, updateSpecification)
            : Promise.resolve(),
    ]);
}
/**
 * Updates the manifest and changelog of the given package per the update
 * specification and writes the changes to disk. The following changes are made
 * to the manifest:
 *
 * - The "version" field is replaced with the new version
 * - If package versions are being synchronized, updates their version ranges
 * wherever they appear as dependencies
 *
 * @param packageMetadata - The metadata of the package to update.
 * @param updateSpecification - The update specification, which determines how
 * the update is performed.
 */
Updates the manifest and changelog of the given package per the update
specification and writes the changes to disk. The following changes are made
to the manifest.

- The "version" field is replaced with the new version
- If package versions are being synchronized, updates their version ranges
wherever they appear as dependencies

@param packageMetadata - The metadata of the package to update.
@param updateSpecification - The update specification, which determines how
the update is performed.
Updates the manifest and changelog of the given package per the update specification and writes the changes to disk . The following changes are made to the manifest . - The " version " field is replaced with the new version - If package versions are being synchronized updates their version ranges wherever they appear as dependencies @param packageMetadata - The metadata of the package to update . @param updateSpecification - The update specification which determines how the update is performed .
async function updatePackage(packageMetadata, updateSpecification, rootDir = WORKSPACE_ROOT) {
    await Promise.all([
        (0,dist.writeJsonFile)(external_path_default().join(rootDir, packageMetadata.dirPath, MANIFEST_FILE_NAME), getUpdatedManifest(packageMetadata.manifest, updateSpecification)),
        updateSpecification.shouldUpdateChangelog
            ? updatePackageChangelog(packageMetadata, updateSpecification)
            : Promise.resolve(),
    ]);
}
async function updatePackage ( packageMetadata , updateSpecification , rootDir = WORKSPACE_ROOT ) { await Promise . all ( [ ( 0 , dist . writeJsonFile ) ( external_path_default ( ) . join ( rootDir , packageMetadata . dirPath , MANIFEST_FILE_NAME ) , getUpdatedManifest ( packageMetadata . manifest , updateSpecification ) ) , updateSpecification . shouldUpdateChangelog ? updatePackageChangelog ( packageMetadata , updateSpecification ) : Promise . resolve ( ) , ] ) ; }
Updates the manifest and changelog of the given package per the update
 specification and writes the changes to disk.
Updates the manifest and changelog of the given package per the update specification and writes the changes to disk .