Skip to content

Commit

Permalink
Add prettierrc to enforce double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Apr 9, 2024
1 parent 54c43e2 commit 31e4308
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "singleQuote": false, "semi": false }
20 changes: 10 additions & 10 deletions scripts/generate.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { generatePythonSDK, writeFs } from '@seamapi/nextlove-sdk-generator'
import { openapi } from '@seamapi/types/connect'
import path from 'path'
import { fileURLToPath } from 'url'
import { deleteAsync } from 'del'
import { generatePythonSDK, writeFs } from "@seamapi/nextlove-sdk-generator"
import { openapi } from "@seamapi/types/connect"
import path from "path"
import { fileURLToPath } from "url"
import { deleteAsync } from "del"

const SEAM_DIRECTORY_PREFIX = 'seam/'
const SEAM_DIRECTORY_PREFIX = "seam/"
const PROJECT_ROOT_PATH = path.resolve(
path.dirname(fileURLToPath(import.meta.url)),
'../',
"../",
)
const MAIN_SEAM_DIR_PATH = path.resolve(PROJECT_ROOT_PATH, 'seam')
const MAIN_SEAM_DIR_PATH = path.resolve(PROJECT_ROOT_PATH, "seam")

const main = async () => {
try {
Expand All @@ -25,9 +25,9 @@ const main = async () => {

writeFs(PROJECT_ROOT_PATH, Object.fromEntries(seamFiles))

console.log('Python SDK generated successfully!')
console.log("Python SDK generated successfully!")
} catch (error) {
console.error('Failed to generate SDK:', error)
console.error("Failed to generate SDK:", error)
}
}

Expand Down

0 comments on commit 31e4308

Please sign in to comment.