Skip to content

Commit

Permalink
fix(ci): build
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed May 25, 2024
1 parent cd6986d commit c0520da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions build/esbuild-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const entries = [
];

export const esBuildContext: esbuild.BuildOptions = {
platform: "node",
sourcemap: true,
entryPoints: entries,
bundle: true,
Expand Down
2 changes: 1 addition & 1 deletion build/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
console.log("Welcome to Powerhouse mirror");
import mirror from "./mirror";
mirror();
void mirror();
4 changes: 1 addition & 3 deletions build/mirror.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@ async function createGitHubIssue(title: string, body: string) {
}
}

async function main() {
export default async function main() {
try {
const issueData = await fetchIssueData();
await createGitHubIssue(issueData.title, issueData.description);
} catch (error) {
console.error("Error in main function:", error);
}
}

void main();

0 comments on commit c0520da

Please sign in to comment.