Skip to content

Commit

Permalink
fix: remove export
Browse files Browse the repository at this point in the history
  • Loading branch information
whilefoo committed Nov 26, 2024
1 parent 4f88341 commit ea10a38
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PluginSettings, pluginSettingsSchema } from "./types/plugin-input";
import { SupportedEvents } from "./types";
import { createAdapters } from "./adapters";

export default createActionsPlugin<PluginSettings, Env, null, SupportedEvents>(
createActionsPlugin<PluginSettings, Env, null, SupportedEvents>(
(context) => {
return runPlugin({
...context,
Expand All @@ -20,4 +20,7 @@ export default createActionsPlugin<PluginSettings, Env, null, SupportedEvents>(
...(process.env.KERNEL_PUBLIC_KEY && { kernelPublicKey: process.env.KERNEL_PUBLIC_KEY }),
postCommentOnError: true,
}
);
).catch((error) => {
console.error(error);
process.exit(1);
});

0 comments on commit ea10a38

Please sign in to comment.