chore: refactor $services base

This commit is contained in:
Ben Allfree 2022-12-31 08:41:25 -08:00
parent 457e3cd210
commit 0d4c2e90d7
9 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
import { pocketbase } from '$services/PocketBaseService'
import { pocketbase } from '$services'
import { InstanceStatus, logger } from '@pockethost/common'
import { PH_BIN_CACHE, PUBLIC_PB_SUBDOMAIN } from '../constants'
import { safeCatch } from '../util/promiseHelper'

View File

@ -6,7 +6,7 @@ import {
pocketbase,
proxyService,
rpcService,
} from '$services/index'
} from '$services'
import { logger } from '@pockethost/common'
import { DEBUG, PH_BIN_CACHE, PUBLIC_PB_SUBDOMAIN } from './constants'

View File

@ -1,4 +1,4 @@
import { clientService, rpcService } from '$services/index'
import { clientService, rpcService } from '$services'
import {
assertTruthy,
BackupFields,

View File

@ -1,5 +1,4 @@
import { createPbClient } from '$services/clientService/PbClient'
import { clientService } from '$services/index'
import { clientService, createPbClient } from '$services'
import { logger, mkSingleton } from '@pockethost/common'
import { readFileSync } from 'fs'
import { FtpSrv } from 'ftp-srv'

View File

@ -1,4 +1,4 @@
import { clientService, rpcService } from '$services/index'
import { clientService, rpcService } from '$services'
import {
assertTruthy,
CreateInstancePayload,

View File

@ -1,4 +1,4 @@
import { instanceService } from '$services/index'
import { instanceService } from '$services'
import { logger, mkSingleton } from '@pockethost/common'
import { createServer } from 'http'
import httpProxy from 'http-proxy'

View File

@ -1,4 +1,4 @@
import { clientService } from '$services/index'
import { clientService } from '$services'
import {
assertTruthy,
logger,

View File

@ -1,5 +1,6 @@
export * from './BackupService'
export * from './clientService/clientService'
export * from './clientService/PbClient'
export * from './FtpService/FtpService'
export * from './InstanceService'
export * from './PocketBaseService'

View File

@ -17,7 +17,7 @@
"baseUrl": ".",
"paths": {
"$util/*": ["src/util/*"],
"$services/*": ["src/services/*"],
"$services": ["src/services/index"],
"$src/*": ["src/*"]
}
},