Skip to content

connector-github@0.1.10 missing barrel exports needed by connector-github-webhook #123

@odink-kindo

Description

@odink-kindo

Bug

@orgloop/connector-github-webhook@0.1.0 imports named normalizer functions from @orgloop/connector-github:

import {
  normalizeCheckSuiteCompleted,
  normalizeIssueComment,
  normalizePullRequestClosed,
  normalizePullRequestOpened,
  normalizePullRequestReadyForReview,
  normalizePullRequestReview,
  normalizePullRequestReviewComment,
  normalizeWorkflowRunFailed,
} from '@orgloop/connector-github';

However, @orgloop/connector-github@0.1.10's dist/index.js only has a default export (the register() function). The normalizer functions exist in dist/normalizer.js but are not re-exported from the barrel.

Impact

orgloop start fails with:

Failed to import connector "@orgloop/connector-github-webhook":
The requested module '@orgloop/connector-github' does not provide an export named 'normalizeCheckSuiteCompleted'

Workaround

Manually patch connector-github/dist/index.js to add:

export {
  normalizePullRequestReview,
  normalizePullRequestReviewComment,
  normalizeIssueComment,
  normalizePullRequestClosed,
  normalizeWorkflowRunFailed,
  normalizePullRequestOpened,
  normalizePullRequestReadyForReview,
  normalizeCheckSuiteCompleted,
} from './normalizer.js';

This patch breaks on any npm install that refreshes the package.

Fix

Add the normalizer re-exports to connector-github's src/index.ts and publish as 0.1.11.

Environment

  • orgloop CLI: 0.7.0
  • connector-github-webhook: 0.1.0
  • connector-github: 0.1.10
  • Node: v24.13.0
  • macOS (arm64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions