astro-viewtransition-theme 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +3 -0
  2. package/package.json +8 -2
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export { default as ThemeToggle } from './src/components/ThemeToggle.astro';
2
+ export { default as ThemeButton } from './src/components/ThemeButton.astro';
3
+ export { default as ThemeInit } from './src/components/ThemeInit.astro';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-viewtransition-theme",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Astro theme toggle with view transitions support.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -20,13 +20,19 @@
20
20
  "view-transitions"
21
21
  ],
22
22
  "type": "module",
23
+ "main": "./src/index.js",
24
+ "types": "./index.d.ts",
23
25
  "exports": {
24
- ".": "./src/index.js",
26
+ ".": {
27
+ "types": "./index.d.ts",
28
+ "default": "./src/index.js"
29
+ },
25
30
  "./ThemeToggle": "./src/components/ThemeToggle.astro",
26
31
  "./ThemeButton": "./src/components/ThemeButton.astro",
27
32
  "./ThemeInit": "./src/components/ThemeInit.astro"
28
33
  },
29
34
  "files": [
35
+ "index.d.ts",
30
36
  "src/components/ThemeToggle.astro",
31
37
  "src/components/ThemeButton.astro",
32
38
  "src/components/ThemeInit.astro",