diff --git a/generate-routes.ts b/generate-routes.ts index 741a57d6..6113e97d 100644 --- a/generate-routes.ts +++ b/generate-routes.ts @@ -1,5 +1,5 @@ import { readFile, writeFile } from 'node:fs/promises' -import { dirname, resolve, posix } from 'node:path' +import { dirname, posix,resolve } from 'node:path' import { fileURLToPath } from 'node:url' import { openapi } from '@seamapi/types/connect' @@ -8,20 +8,13 @@ import { deleteAsync } from 'del' import { ESLint } from 'eslint' import { format, resolveConfig } from 'prettier' -const rootPathParts = [ - 'src', - 'lib', - 'seam', - 'connect', -] +const rootPathParts = ['src', 'lib', 'seam', 'connect'] -const routeOutputPathParts = [ - 'routes' -] +const routeOutputPathParts = ['routes'] const rootPath = resolve( dirname(fileURLToPath(import.meta.url)), - ...rootPathParts + ...rootPathParts, ) const rootClassPath = resolve(rootPath, 'seam-http.ts') const routeOutputPath = resolve(rootPath, ...routeOutputPathParts)