Skip to content

Commit

Permalink
fix: Agrega el main y files a package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nirougi committed Jun 27, 2020
1 parent faa55b8 commit 1a8a707
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "sistebase",
"version": "1.0.0",
"description": "Proyecto de ejemplo para sistemas de diseño de componentes.",
"main": "index.js",
"main": "dist/index.js",
"files": ["dist"],
"scripts": {
"start": "start-storybook -s ./static -p 6006",
"docs": "start-storybook -s ./static -p 6007 --docs",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import { ColorType, Size, sizeToClass } from "../utils";

export interface ButtonProps {
export default interface ButtonProps {
type?: ColorType;
size?: Size;
block?: boolean;
Expand Down
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Components
export { Button } from "./components/Button";
export { Input } from "./components/Input";
export { Modal } from "./components/Modal";

// Patterns
export { Login } from "./components/patterns/Login";

0 comments on commit 1a8a707

Please sign in to comment.