Skip to content

Commit

Permalink
ci: Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Apr 10, 2024
1 parent 5e6ab42 commit 73b0603
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions generate-routes.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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)
Expand Down

0 comments on commit 73b0603

Please sign in to comment.