Skip to content

Commit 3e75fc3

Browse files
committed
Add types to output
1 parent c258373 commit 3e75fc3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import { render } from "react-dom";
3-
import { GithubContributions } from "./src";
3+
import { GithubContributions } from "./";
44

55
render(
66
<div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import GithubContributions from "./GithubContributions";
1+
import GithubContributions from "./src/GithubContributions";
22

33
export default GithubContributions;
44
export { GithubContributions }

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"include": ["src/index.ts"],
2+
"include": ["src", "index.ts"],
33
"compilerOptions": {
44
"isolatedModules": true,
55
"jsx": "react",

vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { defineConfig } from "vite";
33
import dts from "vite-plugin-dts";
44

55
export default defineConfig({
6-
plugins: [react(), dts({ })],
6+
plugins: [react(), dts()],
77
build: {
88
outDir: "./dist",
99
lib: {
10-
entry: "./src/index.ts",
10+
entry: "./index.ts",
1111
formats: ["cjs", "es"],
1212
fileName: "index",
1313
},

0 commit comments

Comments
 (0)