fix build error exporting and declaring plugins

This commit is contained in:
NEOLPAR 2022-09-09 12:01:04 +01:00
parent 57b9b1eaa3
commit 347e7d33e8
3 changed files with 10 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import * as dbConstants from "./db/constants"
import logging from "./logging" import logging from "./logging"
import pino from "./pino" import pino from "./pino"
import * as middleware from "./middleware" import * as middleware from "./middleware"
import plugins from "./plugin"
// mimic the outer package exports // mimic the outer package exports
import * as db from "./pkg/db" import * as db from "./pkg/db"
@ -56,6 +57,7 @@ const core = {
errors, errors,
logging, logging,
roles, roles,
plugins,
...pino, ...pino,
...errorClasses, ...errorClasses,
middleware, middleware,

View File

@ -1 +1,7 @@
export * from "./utils" import * as utils from "./utils"
const pkg = {
...utils,
}
export = pkg

View File

@ -11,3 +11,4 @@ declare module "@budibase/backend-core/encryption"
declare module "@budibase/backend-core/utils" declare module "@budibase/backend-core/utils"
declare module "@budibase/backend-core/redis" declare module "@budibase/backend-core/redis"
declare module "@budibase/backend-core/objectStore" declare module "@budibase/backend-core/objectStore"
declare module "@budibase/backend-core/plugins"