Bitwarden client applications (web, browser extension, desktop, and cli)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
785 B

/* eslint-disable no-console */
/// Ensure that `sdk-internal` and `commercial-sdk-internal` dependencies have matching versions.
import fs from "fs";
import path from "path";
const packageJson = JSON.parse(
fs.readFileSync(path.join(__dirname, "..", "..", "package.json"), "utf8"),
);
const sdkInternal = packageJson.dependencies["@bitwarden/sdk-internal"];
const commercialSdkInternal = packageJson.dependencies["@bitwarden/commercial-sdk-internal"];
if (sdkInternal !== commercialSdkInternal) {
console.error(
`Version mismatch between @bitwarden/sdk-internal (${sdkInternal}) and @bitwarden/commercial-sdk-internal (${commercialSdkInternal}), must be an exact match.`,
);
process.exit(1);
}
console.log(`All dependencies have matching versions: ${sdkInternal}`);