Skip to content

bug: connector-linear and connector-github don't re-export normalizer functions #134

Closed

Description

@c-h-

Problem

@orgloop/connector-linear-webhook imports normalizeAssigneeChange (and others) from @orgloop/connector-linear, and @orgloop/connector-github-webhook imports normalizeCheckSuiteCompleted (and others) from @orgloop/connector-github.

But neither base connector re-exports these functions from their entry point (dist/index.js). The functions exist in dist/normalizer.js but aren't included in the package's public API.

This causes orgloop to crash on startup:

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

Fix

Both connector-linear/src/index.ts and connector-github/src/index.ts need to re-export their normalizer functions:

// connector-linear/src/index.ts
export { normalizeAssigneeChange, normalizeComment, normalizeIssueStateChange, normalizeLabelChange, normalizeNewIssue, normalizePriorityChange } from './normalizer.js';

// connector-github/src/index.ts  
export { normalizePullRequestReview, normalizePullRequestReviewComment, normalizeIssueComment, normalizePullRequestClosed, normalizeWorkflowRunFailed, normalizePullRequestOpened, normalizePullRequestReadyForReview, normalizeCheckSuiteCompleted } from './normalizer.js';

Then publish new versions of both base connectors.

Workaround

Manually patching the globally installed dist/index.js files to add the re-exports. Fragile — any npm install -g wipes the patches.

Activity

  1. c-h- commented on Mar 19, 2026

    @c-h-
    CollaboratorAuthor

    This is already fixed. The re-exports were added in #113 (connector-github, commit 7dc3f08) and #125 (connector-linear, commit 972089f) when the webhook connectors were introduced.

    Both connectors/linear/src/index.ts and connectors/github/src/index.ts already re-export all normalizer functions, and the built output in dist/index.js includes them. Typecheck and all tests pass.

    If you are still seeing this error, it may be because you are running an older published version of the base connectors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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