chore(msteams): drop unused @microsoft/teams.api direct dep

CI's deadcode:dependencies (knip) flagged @microsoft/teams.api as
unused in extensions/msteams. The plugin source uses structural type
aliases (MSTeamsActivityParams, MSTeamsActivityLike, etc.) to dodge
tsgo resolution bugs with teams.api's hashed d.ts files, so it never
imports teams.api directly. The package is brought in transitively
via @microsoft/teams.apps; the only other reference is
probe.test.ts's vi.mock("@microsoft/teams.api"), which works on the
import-path string and doesn't require a direct dep declaration.

Lockfile regenerates accordingly. tsgo:extensions, knip, and all
865 msteams tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
heyitsaamir
2026-05-07 18:25:06 +00:00
parent 19701b451f
commit 8f4050f51a
2 changed files with 0 additions and 4 deletions

View File

@@ -9,7 +9,6 @@
"type": "module",
"dependencies": {
"@azure/identity": "4.13.1",
"@microsoft/teams.api": "2.0.10",
"@microsoft/teams.apps": "2.0.10",
"express": "5.2.1",
"typebox": "1.1.37"

3
pnpm-lock.yaml generated
View File

@@ -1041,9 +1041,6 @@ importers:
'@azure/identity':
specifier: 4.13.1
version: 4.13.1
'@microsoft/teams.api':
specifier: 2.0.10
version: 2.0.10
'@microsoft/teams.apps':
specifier: 2.0.10
version: 2.0.10