fix build error exporting and declaring plugins
This commit is contained in:
parent
57b9b1eaa3
commit
347e7d33e8
|
@ -18,6 +18,7 @@ import * as dbConstants from "./db/constants"
|
|||
import logging from "./logging"
|
||||
import pino from "./pino"
|
||||
import * as middleware from "./middleware"
|
||||
import plugins from "./plugin"
|
||||
|
||||
// mimic the outer package exports
|
||||
import * as db from "./pkg/db"
|
||||
|
@ -56,6 +57,7 @@ const core = {
|
|||
errors,
|
||||
logging,
|
||||
roles,
|
||||
plugins,
|
||||
...pino,
|
||||
...errorClasses,
|
||||
middleware,
|
||||
|
|
|
@ -1 +1,7 @@
|
|||
export * from "./utils"
|
||||
import * as utils from "./utils"
|
||||
|
||||
const pkg = {
|
||||
...utils,
|
||||
}
|
||||
|
||||
export = pkg
|
||||
|
|
|
@ -11,3 +11,4 @@ declare module "@budibase/backend-core/encryption"
|
|||
declare module "@budibase/backend-core/utils"
|
||||
declare module "@budibase/backend-core/redis"
|
||||
declare module "@budibase/backend-core/objectStore"
|
||||
declare module "@budibase/backend-core/plugins"
|
||||
|
|
Loading…
Reference in New Issue