1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-25569] Expose commercial sdk service to web clients (#16899)

* feat: enable commercial SDK usage on web

* feat: enable commercial SDK usage in cli

* feat: enable commercial SDK usage in browser

* feat: add lint to restrict commercial sdk imports
This commit is contained in:
Andreas Coroiu
2025-10-31 08:13:36 +01:00
committed by GitHub
parent 48fb8b2bfe
commit 1264abfb19
6 changed files with 30 additions and 2 deletions

View File

@@ -160,6 +160,11 @@ export default tseslint.config(
// allow module index import
except: ["**/state/index.ts"],
},
{
target: ["libs/**/*"],
from: ["apps/**/*"],
message: "Libs should not import app-specific code.",
},
],
},
],
@@ -688,6 +693,12 @@ function buildNoRestrictedImports(additionalForbiddenPatterns = [], skipPlatform
return [
"error",
{
paths: [
{
name: "@bitwarden/commercial-sdk-internal",
message: "Use @bitwarden/sdk-internal instead.",
},
],
patterns: [
...(skipPlatform ? [] : ["**/platform/**/internal", "**/platform/messaging/**"]),
"**/src/**/*", // Prevent relative imports across libs.