Skip to content

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions