Typescript Output - #14
Merged
Merged
Conversation
There was a problem hiding this comment.
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 adjusttsconfig.jsoninclude patterns for dist builds. - Update
package.jsonmetadata to pointtypesto./dist/index.d.ts, add anexportsmap, and restrict published files todist+ docs. - Migrate tests from
tapetonode:test/node:assertand 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
tapetonode:testandnode:assert