Skip to content

Commit aedac3b

Browse files
committed
update configurarion
1 parent fe8dd02 commit aedac3b

3 files changed

Lines changed: 11 additions & 14 deletions

File tree

src/core/commitSummerizer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { unknowError } from "../utils/error.js";
55

66
export const commitSummerizer = async (
77
username: string,
8-
token: string,
9-
created_at: string
8+
created_at: string,
9+
token?: string
1010
) => {
1111
const commitsPerYear: CommitType[] = [];
1212
let totalCommits = 0;

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// export { getUserProfile } from "./api/profile";
2-
// export { commitSummerizer } from "./core/commitSummerizer";
3-
// export { repoSummerizer } from "./core/repoSummerizer";
1+
export { getUserProfile } from "./api/profile.js";
2+
export { commitSummerizer } from "./core/commitSummerizer.js";
3+
export { repoSummerizer } from "./core/repoSummerizer.js";
44

55
export function helloWorld() {
66
const message = "Hello World from my example modern npm package!";

tsconfig.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"lib": ["ES2024", "DOM"],
4-
"target": "es2024",
4+
"target": "es2022",
55
"module": "NodeNext",
66
"moduleResolution": "NodeNext",
77
"outDir": "dist",
@@ -10,15 +10,12 @@
1010
"esModuleInterop": true,
1111
"forceConsistentCasingInFileNames": true,
1212
"skipLibCheck": true,
13-
"checkJs": true,
14-
"allowJs": true,
15-
"declaration": true,
16-
"declarationMap": true,
1713
"allowSyntheticDefaultImports": true,
1814
"noImplicitAny": true,
1915
"strictNullChecks": true,
20-
"isolatedModules": true,
21-
"noEmit": true
16+
"isolatedModules": false,
17+
"declaration": true,
18+
"declarationMap": true
2219
},
23-
"include": ["./src"]
24-
}
20+
"include": ["src"]
21+
}

0 commit comments

Comments
 (0)