Skip to content

Commit

Permalink
fix: plugin entry
Browse files Browse the repository at this point in the history
  • Loading branch information
whilefoo committed Nov 25, 2024
1 parent e89e000 commit a62df93
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
node-version: "20.10.0"

- name: Execute plugin
run: node dist/index.js
run: node dist/main.js
env:
PLUGIN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
with:
treatAsEsm: true
sourcemap: false
pluginEntry: "src/main.ts"
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createActionsPlugin } from "@ubiquity-os/plugin-sdk";
import { LogLevel } from "@ubiquity-os/ubiquity-os-logger";
import { runPlugin } from "./plugin";
import { Env, envSchema } from "./types/env";
import { PluginSettings, pluginSettingsSchema } from "./types/plugin-inputs";
import { PluginSettings, pluginSettingsSchema } from "./types/plugin-input";
import { SupportedEvents } from "./types";
import { createAdapters } from "./adapters";

Expand Down
2 changes: 1 addition & 1 deletion src/types/context.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createAdapters } from "../adapters";
import { Env } from "./env";
import { PluginSettings } from "./plugin-inputs";
import { PluginSettings } from "./plugin-input";
import { Context as PluginContext } from "@ubiquity-os/plugin-sdk";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./context";
export * from "./env";
export * from "./plugin-inputs";
export * from "./plugin-input";
File renamed without changes.
2 changes: 1 addition & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ExecutionContext } from "hono";
import { createAdapters } from "./adapters";
import { SupportedEvents } from "./types/context";
import { Env, envSchema } from "./types/env";
import { PluginSettings, pluginSettingsSchema } from "./types/plugin-inputs";
import { PluginSettings, pluginSettingsSchema } from "./types/plugin-input";
import manifest from "../manifest.json";
import { runPlugin } from "./plugin";
import { Manifest } from "@ubiquity-os/plugin-sdk/manifest";
Expand Down

0 comments on commit a62df93

Please sign in to comment.