Skip to content

Commit 517f8d9

Browse files
authored
Exclude test from output and corrected paths (#43)
1 parent 6dc6314 commit 517f8d9

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Excluded test code from the package and made sure the paths are pointing to the correct `.d.ts` files
13+
1014
## [2.7.1] - 2023-06-16
1115

1216
### Fixed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"module": "dist/index.modern.js",
2626
"source": "src/index.ts",
2727
"jsnext:main": "dist/index.modern.js",
28-
"types": "dist/src/index.d.ts",
28+
"types": "dist/index.d.ts",
2929
"files": [
3030
"dist"
3131
],

rollup.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const plugins = [
1717
typescript({
1818
clean: true,
1919
exclude: ["**/__tests__", "**/*.test.ts", "**/stories/**/*"],
20+
tsconfig: "tsconfig.rollup.json",
2021
}),
2122
commonjs({
2223
include: /\/node_modules\//,

tsconfig.rollup.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src"]
4+
}

0 commit comments

Comments
 (0)