Skip to content

fix: package type declarations#7

Merged
jwindhager merged 4 commits intomainfrom
fix/type-decl
Apr 10, 2026
Merged

fix: package type declarations#7
jwindhager merged 4 commits intomainfrom
fix/type-decl

Conversation

@jwindhager
Copy link
Copy Markdown
Member

No description provided.

@jwindhager jwindhager self-assigned this Apr 10, 2026
Copilot AI review requested due to automatic review settings April 10, 2026 16:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 build/publish setup to generate and expose TypeScript declaration files for the omezarr-tilesource package, and adjusts exports/types to make the OpenSeadragon augmentation type available to consumers.

Changes:

  • Add Vite type generation via unplugin-dts for library builds and publish types metadata from package.json.
  • Switch TypeScript config from noEmit to emitting declaration-only output into a separate ./build directory.
  • Export OMEZarrTileSourceClass and re-export it from the library entrypoint.

Reviewed changes

Copilot reviewed 6 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
vite.config.ts Adds unplugin-dts to generate bundled .d.ts during library builds.
tsconfig.json Enables declaration-only emits and configures output paths for emitted types/build info.
src/OMEZarrTileSource.ts Exports OMEZarrTileSourceClass type so it can be re-exported/published.
src/main.ts Adjusts entrypoint exports and keeps runtime enable() behavior.
package.json Publishes types entry and updates build scripts/deps for declaration generation.
pnpm-lock.yaml Locks newly added dev dependencies (unplugin-dts, @microsoft/api-extractor).
package-lock.json Removed (project is pnpm-only).
eslint.config.js Ignores new build/ output directory.
.prettierignore Ignores new build/ output directory.
.gitignore Ignores new build/ output directory.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread package.json Outdated
jwindhager and others added 2 commits April 10, 2026 18:45
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@jwindhager jwindhager merged commit 15dc6f5 into main Apr 10, 2026
3 checks passed
@jwindhager jwindhager deleted the fix/type-decl branch April 10, 2026 16:47
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (ae20234) to head (03bd377).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@    Coverage Diff    @@
##   main   #7   +/-   ##
=========================
=========================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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