Fixing build issue.
This commit is contained in:
parent
a9fb09424b
commit
cb73e3b1c3
|
@ -3,7 +3,7 @@ import env from "./environment"
|
|||
import chokidar from "chokidar"
|
||||
import fs from "fs"
|
||||
import { constants, tenancy } from "@budibase/backend-core"
|
||||
import { processUploadedPlugin } from "./api/controllers/plugin"
|
||||
import pluginsSdk from "./sdk/plugins"
|
||||
|
||||
export function watch() {
|
||||
const watchPath = path.join(env.PLUGINS_DIR, "./**/*.tar.gz")
|
||||
|
@ -27,7 +27,7 @@ export function watch() {
|
|||
const split = path.split("/")
|
||||
const name = split[split.length - 1]
|
||||
console.log("Importing plugin:", path)
|
||||
await processUploadedPlugin({ name, path })
|
||||
await pluginsSdk.processUploaded({ name, path })
|
||||
} catch (err: any) {
|
||||
const message = err?.message ? err?.message : err
|
||||
console.error("Failed to import plugin:", message)
|
||||
|
|
Loading…
Reference in New Issue