diff --git a/index.ts b/index.ts index 21e6043..ef4e0e9 100644 --- a/index.ts +++ b/index.ts @@ -7,7 +7,7 @@ */ import { launch } from './run.js' -import type { LocalOpenSearch } from './run.js' +import type { LocalSearch } from './run.js' import { populate } from './data.js' import { cloudformationResources as serverlessCloudformationResources, @@ -58,7 +58,7 @@ export const deploy = { }, } -let local: LocalOpenSearch +let local: LocalSearch export const sandbox = { async start({ diff --git a/run.ts b/run.ts index dec69e2..075e233 100644 --- a/run.ts +++ b/run.ts @@ -21,7 +21,7 @@ import { import { pipeline } from 'stream/promises' import { createReadStream } from 'fs' -export class LocalOpenSearch { +export class LocalSearch { private readonly child!: ChildProcess private readonly tempDir!: string readonly port!: number @@ -93,8 +93,6 @@ export class LocalOpenSearch { } } -export async function launch( - ...args: Parameters -) { - return await LocalOpenSearch.launch(...args) +export async function launch(...args: Parameters) { + return await LocalSearch.launch(...args) }