libreria-astro-lefebvre 0.0.34 → 0.0.35

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/package.json +34 -30
  2. package/src/env.d.ts +15 -0
package/package.json CHANGED
@@ -1,30 +1,34 @@
1
- {
2
- "name": "libreria-astro-lefebvre",
3
- "version": "0.0.34",
4
- "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
- "author": "Equipo web desarrollo Lefebvre",
6
- "type": "module",
7
- "exports": {
8
- ".": "./src/index.ts",
9
- "./list": "./src/list.ts"
10
- },
11
- "files": [
12
- "src"
13
- ],
14
- "keywords": [
15
- "astro",
16
- "astro-components",
17
- "ui",
18
- "component-library",
19
- "design-system"
20
- ],
21
- "peerDependencies": {
22
- "astro": "^5.11.0"
23
- },
24
- "scripts": {
25
- "generate:registry": "node scripts/generateRegistry.js"
26
- },
27
- "devDependencies": {
28
- "typescript": "^5.8.3"
29
- }
30
- }
1
+ {
2
+ "name": "libreria-astro-lefebvre",
3
+ "version": "0.0.35",
4
+ "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
+ "author": "Equipo web desarrollo Lefebvre",
6
+ "type": "module",
7
+ "types": "./src/env.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./src/env.d.ts",
11
+ "default": "./src/index.ts"
12
+ },
13
+ "./list": "./src/list.ts"
14
+ },
15
+ "files": [
16
+ "src"
17
+ ],
18
+ "keywords": [
19
+ "astro",
20
+ "astro-components",
21
+ "ui",
22
+ "component-library",
23
+ "design-system"
24
+ ],
25
+ "peerDependencies": {
26
+ "astro": "^5.11.0"
27
+ },
28
+ "scripts": {
29
+ "generate:registry": "node scripts/generateRegistry.js"
30
+ },
31
+ "devDependencies": {
32
+ "typescript": "^5.8.3"
33
+ }
34
+ }
package/src/env.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ /// <reference types="astro/client" />
2
+
3
+ // Declaraciones de tipos para archivos .astro
4
+ declare module '*.astro' {
5
+ import type { AstroComponentFactory } from 'astro/runtime/server/index.js';
6
+ const component: AstroComponentFactory;
7
+ export default component;
8
+ }
9
+
10
+ // Declaraciones de tipos para archivos .vue
11
+ declare module '*.vue' {
12
+ import type { DefineComponent } from 'vue';
13
+ const component: DefineComponent<{}, {}, any>;
14
+ export default component;
15
+ }