Skip to content

fix(metrics): move @webex/event-dictionary-ts to a dependency#5089

Open
cmullenx wants to merge 1 commit into
webex:nextfrom
cmullenx:fixPackage
Open

fix(metrics): move @webex/event-dictionary-ts to a dependency#5089
cmullenx wants to merge 1 commit into
webex:nextfrom
cmullenx:fixPackage

Conversation

@cmullenx

@cmullenx cmullenx commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

COMPLETES #< INSERT LINK TO ISSUE >

This pull request addresses

The build failures that occur due to @webex/event-dictionary-ts being referenced in code but only included as a dev dep

by making the following changes

added @webex/event-dictionary-ts as a dependency

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Tooling change
  • Internal code refactor

The following scenarios were tested

< ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >

The GAI Coding Policy And Copyright Annotation Best Practices

  • GAI was not used (or, no additional notation is required)
  • Code was generated entirely by GAI
  • GAI was used to create a draft that was subsequently customized or modified
  • Coder created a draft manually that was non-substantively modified by GAI (e.g., refactoring was performed by GAI on manually written code)
  • Tool used for AI assistance (GitHub Copilot / Other - specify)
    • Github Copilot
    • Other - Windsurf
  • This PR is related to
    • Feature
    • Defect fix
    • Tech Debt
    • Automation

I certified that

  • I have read and followed contributing guidelines
  • I discussed changes with code owners prior to submitting this pull request
  • I have not skipped any automated checks
  • All existing and new tests passed
  • I have updated the documentation accordingly

Make sure to have followed the contributing guidelines before submitting.

@cmullenx cmullenx requested review from a team as code owners July 8, 2026 18:55
@aws-amplify-us-east-2

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-5089.d3m3l2kee0btzx.amplifyapp.com

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3856cbd8f0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +8 to +10
"files": [
"dist"
],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add event dictionary to metrics dependencies

This package still leaves @webex/event-dictionary-ts only in devDependencies; adding files does not make it available to downstream installs. Because src/metrics.types.ts imports types from that package and those types are re-exported from src/index.ts, the generated dist/types declarations for published consumers can reference a package that is not installed, so TypeScript users of @webex/internal-plugin-metrics still hit the missing-module failure this change is meant to fix.

Useful? React with 👍 / 👎.

Comment on lines +16 to +18
"files": [
"dist"
],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add event dictionary to meetings dependencies

This package still leaves @webex/event-dictionary-ts only in devDependencies; adding files does not make it available to downstream installs. src/meeting/index.ts exposes a method typed with RawClientEvent['userType'], so the generated declarations can reference @webex/event-dictionary-ts for consumers of the published package, but npm will not install this dev dependency transitively, leaving the original missing-module/type-resolution failure unresolved.

Useful? React with 👍 / 👎.

… files field

The published .d.ts type declarations in dist/types/ import from
@webex/event-dictionary-ts. When this package is only in devDependencies,
it is not installed for consumers, causing TS2307 build failures for any
downstream TypeScript project — regardless of skipLibCheck setting.

This reverts the dependency classification from PR webex#4710 which incorrectly
moved it to devDependencies. The generated declarations still reference
the package, so it must be a production dependency.

Also adds "files": ["dist"] to both packages to prevent shipping src/
and tsconfig.json in the published npm package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants