-
Notifications
You must be signed in to change notification settings - Fork 63
Prepare the TypeScript SDK for npm packaging and maintainer-controlled publishing #257
Copy link
Copy link
Open
Labels
TypeScriptTypeScript codeTypeScript codedocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestlevel:intermediateModerate scope requiring project familiarity or cross-file changes.Moderate scope requiring project familiarity or cross-file changes.triageNeeds maintainer triage.Needs maintainer triage.type:devopsDeployment, observability, operations, CI, or infrastructure work.Deployment, observability, operations, CI, or infrastructure work.type:docsDocumentation, API docs, examples, or contributor docs.Documentation, API docs, examples, or contributor docs.type:featureNew user-facing or API-facing capability.New user-facing or API-facing capability.type:testingTests, coverage, fixtures, or validation-only work.Tests, coverage, fixtures, or validation-only work.
Description
Metadata
Metadata
Assignees
Labels
TypeScriptTypeScript codeTypeScript codedocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestlevel:intermediateModerate scope requiring project familiarity or cross-file changes.Moderate scope requiring project familiarity or cross-file changes.triageNeeds maintainer triage.Needs maintainer triage.type:devopsDeployment, observability, operations, CI, or infrastructure work.Deployment, observability, operations, CI, or infrastructure work.type:docsDocumentation, API docs, examples, or contributor docs.Documentation, API docs, examples, or contributor docs.type:featureNew user-facing or API-facing capability.New user-facing or API-facing capability.type:testingTests, coverage, fixtures, or validation-only work.Tests, coverage, fixtures, or validation-only work.
Summary
The TypeScript SDK is currently a private, source-only workspace package. External consumers must clone the repository or install it from a local path, so it is not yet usable as a normal versioned dependency.
Prepare the SDK for public npm distribution and a maintainer-controlled release process. The first live publish must remain a maintainer action because it requires control of the npm scope and registry trust configuration.
Current behavior
private.@microai/paygate-sdkis not currently present in the public npm registry, but registry availability does not prove that this repository controls the@microaiscope.Desired behavior
The SDK should produce a minimal, versioned package containing compiled ESM JavaScript, TypeScript declarations, package metadata, its README, and license information. A clean consumer project should be able to install the packed artifact and import the public API without referencing repository source files.
Publishing should happen only through a maintainer-approved release process after the package name and npm scope ownership are confirmed. Prefer npm trusted publishing with short-lived OIDC credentials over a long-lived write token.
Maintainer prerequisites
Before implementation is approved, a maintainer must:
Key interfaces
.d.tsfiles into a clean output directory.Acceptance criteria
npm pack --dry-runcontains only the intended runtime package files, README, license, and required metadata.Out of scope
Verification
Run the SDK type checks and tests, build from a clean checkout, inspect
npm pack --dry-run, and install the resulting tarball in a temporary consumer project. The release workflow must also be reviewed without performing an unapproved publication.Blocked by
Maintainer confirmation of the npm package name/scope and release authorization model.