Browse Source
* feat: add commercial sdk as optional dependency * feat: add alias to CLI * feat: add alias to browser * feat: add alias to web * fix: revert optional - we cant omit optional dependencies or the builds break * feat: remove commercial package from browser build * feat: remove commercial package from cli build * feat: remove commercial package from web build * chore: add commercial sdk to renovate * fix: windows cli workflow * fix: accidental change * feat: add lint for version string * undo weird merge changespull/17044/head
16 changed files with 139 additions and 6 deletions
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
save-exact=true |
||||
# Increase available heap size to avoid running out of memory when compiling. |
||||
# This applies to all npm scripts in this repository. |
||||
node-options=--max-old-space-size=8192 |
||||
node-options=--max-old-space-size=8192 |
||||
|
||||
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
/* 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}`); |
||||
Loading…
Reference in new issue