File tree Expand file tree Collapse file tree 5 files changed +594
-16
lines changed Expand file tree Collapse file tree 5 files changed +594
-16
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " snap-components" ,
3
- "version" : " 0.0.6" ,
4
- "type" : " module" ,
3
+ "version" : " 0.0.7" ,
5
4
"author" : " Eduardo Aparicio Cardenes" ,
5
+ "type" : " module" ,
6
6
"files" : [
7
- " dist/* "
7
+ " dist"
8
8
],
9
+ "main" : " ./dist/snap-components.cjs.js" ,
10
+ "module" : " ./dist/snap-components.es.js" ,
11
+ "types" : " ./dist/snap-components.d.ts" ,
12
+ "exports" : {
13
+ "." : {
14
+ "import" : " ./dist/snap-components.es.js" ,
15
+ "require" : " ./dist/snap-components.cjs.js"
16
+ }
17
+ },
9
18
"repository" : {
10
19
"type" : " git" ,
11
20
"url" : " https://github.com/EduardoAC/snap-components.git"
57
66
"styled-components" : " 6.1.13" ,
58
67
"typescript" : " ~5.6.3" ,
59
68
"typescript-eslint" : " ^8.14.0" ,
60
- "vite" : " ^5.4.11"
69
+ "vite" : " ^5.4.11" ,
70
+ "vite-plugin-dts" : " 4.3.0"
61
71
},
62
72
"eslintConfig" : {
63
73
"extends" : [
Original file line number Diff line number Diff line change 1
1
export * from "./components" ;
2
+ export * from "./mixins" ;
3
+ export * from "./theme" ;
Original file line number Diff line number Diff line change 1
1
export { defaultTheme } from "./default" ;
2
+ export * from "./types" ;
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from "vite" ;
2
+ import dts from "vite-plugin-dts" ;
2
3
import { resolve } from "node:path" ;
3
4
import react from "@vitejs/plugin-react" ;
4
5
5
6
// https://vite.dev/config/
6
7
export default defineConfig ( {
7
- plugins : [ react ( ) ] ,
8
+ plugins : [
9
+ react ( ) ,
10
+ dts ( {
11
+ tsconfigPath : "./tsconfig.json" ,
12
+ rollupTypes : true ,
13
+ exclude : [ "**/*.stories.tsx" ] ,
14
+ } ) ,
15
+ ] ,
8
16
resolve : {
9
17
alias : {
10
18
"@mixins" : resolve ( __dirname , "src/mixins" ) ,
You can’t perform that action at this time.
0 commit comments