Skip to content

Add type file reference in package.json - #151

Open
TiMESPLiNTER wants to merge 2 commits into
chaijs:masterfrom
TiMESPLiNTER:fix/types
Open

TiMESPLiNTER wants to merge 2 commits into
chaijs:masterfrom
TiMESPLiNTER:fix/types

Conversation

@TiMESPLiNTER

Copy link
Copy Markdown

This adds the type file reference in the package.json, so TS can find types for this package and doesn't need to fall back on @types/type-detect shim.

Copilot AI lite review requested due to automatic review settings August 5, 2026 22:08
@TiMESPLiNTER
TiMESPLiNTER requested a review from a team as a code owner August 5, 2026 22:08

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 adds an explicit TypeScript declaration entrypoint to package.json so TypeScript consumers can resolve this package’s bundled typings directly (instead of falling back to @types/type-detect).

Changes:

  • Add "types": "./index.d.ts" to package.json.
  • Update package-lock.json (includes significant dependency-resolution changes).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Declares the package’s TypeScript types entrypoint (index.d.ts).
package-lock.json Lockfile updated; includes notable dependency tree/version shifts (e.g., ajv resolution).

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants