From a64926372505887b10e6c6ccad49331e72a1bf83 Mon Sep 17 00:00:00 2001
From: Daniel Thoma
Date: Mon, 6 Nov 2023 16:42:21 +0100
Subject: [PATCH 1/3] Enable rollup for types
By enabling rollup for typescript types we ensure that the build declaration file is at dist/index.d.ts.
Otherwise the declaration files would be kept in the same structure as our source which could be problematic if the src structure changed, leading to a change in the resulting structure of our built files (in dist/) which could be different to the path definitions in our package.json.
---
vite.config.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vite.config.ts b/vite.config.ts
index 97e5e23..08121b6 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -11,5 +11,5 @@ export default defineConfig({
fileName: 'index',
},
},
- plugins: [dts()],
+ plugins: [dts({ rollupTypes: true })],
})
From 06ce8b90467cadc65a654d41fa9a6caf58b53d26 Mon Sep 17 00:00:00 2001
From: Daniel Thoma
Date: Mon, 6 Nov 2023 16:54:49 +0100
Subject: [PATCH 2/3] add changelog entry
---
CHANGELOG.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 47b2666..97b193b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,8 @@ All notable changes to **dot-diver** will be documented here. Inspired by [keep
## Unreleased
+- Fix by enabling rollup for types
+
## [1.0.3](https://github.com/clickbar/dot-diver/tree/1.0.3) (2023-11-03)
- Rerelease with fixed release pipeline 😅
@@ -14,7 +16,7 @@ All notable changes to **dot-diver** will be documented here. Inspired by [keep
- Formatted code with new lint rules
- Fixed testcase for new TypeScript behavior
- Added guards against prototype pollution, thanks to @d3ng03 ()
-- Added provenance for the published package (See https://docs.npmjs.com/generating-provenance-statements)
+- Added provenance for the published package (See )
## [1.0.1](https://github.com/clickbar/dot-diver/tree/1.0.1) (2023-03-26)
From 33f6ea6f0d33decb30eb2cb642298261fe6ddd76 Mon Sep 17 00:00:00 2001
From: Daniel Thoma
Date: Tue, 7 Nov 2023 10:50:13 +0100
Subject: [PATCH 3/3] update changelog entry
---
CHANGELOG.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 97b193b..7526caa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,7 @@ All notable changes to **dot-diver** will be documented here. Inspired by [keep
## Unreleased
-- Fix by enabling rollup for types
+- Enable rollup of typescript declaration files
## [1.0.3](https://github.com/clickbar/dot-diver/tree/1.0.3) (2023-11-03)