Skip to content

Commit

Permalink
Explicitly export package.json (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriangalliat committed Jul 12, 2022
1 parent cfd2eca commit 50f2833
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [2.1.0] - 2022-07-12
* Explicitly export `package.json` to be compatible with bundlers. ([#72])

## [2.0.5] - 2022-05-26
* Change order of `exports` `default` in `package.json`. ([#72])

Expand Down Expand Up @@ -108,7 +111,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [0.1.0] - 2015-04-04
* Initial release.

[Unreleased]: https://github.com/valeriangalliat/fetch-cookie/compare/v2.0.5...HEAD
[Unreleased]: https://github.com/valeriangalliat/fetch-cookie/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/valeriangalliat/fetch-cookie/compare/v2.0.5...v2.1.0
[2.0.5]: https://github.com/valeriangalliat/fetch-cookie/compare/v2.0.4...v2.0.5
[2.0.4]: https://github.com/valeriangalliat/fetch-cookie/compare/v2.0.3...v2.0.4
[2.0.3]: https://github.com/valeriangalliat/fetch-cookie/compare/v2.0.2...v2.0.3
Expand Down
17 changes: 10 additions & 7 deletions package.json
Expand Up @@ -8,13 +8,16 @@
"main": "./cjs/index-wrapper.js",
"module": "./esm/index.js",
"exports": {
"import": {
"types": "./esm/index.d.ts",
"default": "./esm/index.js"
},
"require": {
"types": "./cjs/index.d.ts",
"default": "./cjs/index-wrapper.js"
"./package.json": "./package.json",
".": {
"import": {
"types": "./esm/index.d.ts",
"default": "./esm/index.js"
},
"require": {
"types": "./cjs/index.d.ts",
"default": "./cjs/index-wrapper.js"
}
}
},
"types": "esm/index.d.ts",
Expand Down

0 comments on commit 50f2833

Please sign in to comment.