Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(package): add exports map to package.json #77

Merged
merged 6 commits into from
Jan 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.10.2](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.10.2) - 2024-01-01

**Fixes**

- add `exports` field to `package.json`

## [0.10.1](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.10.1) - 2023-07-20

**Fixes**
Expand Down
18 changes: 16 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
{
"name": "svelte-intersection-observer",
"version": "0.10.1",
"version": "0.10.2",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change can be undone since I manually add a separate commit for a version bump.

"license": "MIT",
"description": "Detect if an element is in the viewport using the Intersection Observer API",
"author": "Eric Liu (https://github.com/metonym)",
"type": "module",
"svelte": "./src/index.js",
"main": "./src/index.js",
"types": "./src/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./types/index.d.ts",
"svelte": "./src/index.js"
},
"./src/*.svelte": {
"types": "./src/*.svelte.d.ts",
"import": "./src/*.svelte"
},
"./src/*": {
"types": "./src/*.d.ts",
"import": "./src/*.js"
}
},
"scripts": {
"dev": "rollup -cw",
"build": "rollup -c",
Expand Down