Skip to content

Typescript Output - #14

Merged
ingalls merged 6 commits into
masterfrom
typescript
Mar 26, 2026
Merged

Typescript Output#14
ingalls merged 6 commits into
masterfrom
typescript

Conversation

@ingalls

@ingalls ingalls commented Mar 26, 2026

Copy link
Copy Markdown
Member

Context

  • Output Type Definitions in NPM Package
  • Migrate from tape to node:test and node:assert

@ingalls ingalls self-assigned this Mar 26, 2026
@ingalls ingalls added the enhancement New feature or request label Mar 26, 2026

Copilot AI 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.

Pull request overview

This PR updates the package to publish generated TypeScript declaration files in the distributed dist/ output and migrates the test suite from tape to Node’s built-in node:test/node:assert APIs.

Changes:

  • Enable TypeScript declaration output (.d.ts + declaration maps) and adjust tsconfig.json include patterns for dist builds.
  • Update package.json metadata to point types to ./dist/index.d.ts, add an exports map, and restrict published files to dist + docs.
  • Migrate tests from tape to node:test/node:assert and update docs/root exports to support named imports.

Reviewed changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tsconfig.json Turns on declaration emit and refines build inputs for proper dist/ output.
package.json Points consumers to generated dist types/JS, adds exports, updates deps, and limits published files.
index.ts Re-exports key APIs/types from the root entrypoint for named-import consumers.
README.md Updates usage examples to match the new root exports / instantiation pattern.
CHANGELOG.md Adds unreleased notes for declaration publishing and root re-exports.
.github/workflows/test.yml Updates CI actions and Node version used for tests.
.github/workflows/release.yml Updates release workflow actions and Node version used for build/publish.
test/*.test.ts Migrates tests off tape onto node:test + node:assert/strict.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/commands.test.ts Outdated
Comment thread test/commands.test.ts Outdated
Comment thread index.ts
Comment thread package.json
@ingalls
ingalls merged commit 6670fa3 into master Mar 26, 2026
1 check passed
@ingalls
ingalls deleted the typescript branch March 26, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants