diff options
author | 2024-04-30 20:23:31 +0000 | |
---|---|---|
committer | 2024-04-30 20:23:31 +0000 | |
commit | 1b7ed7a31a3a7a244440562a8e16aac1617c0114 (patch) | |
tree | bf657894cf46092228e3b84f041e895815dbe6b8 | |
parent | ca605f4dd8fcd070d3d5a5ca2f7080d921801e17 (diff) | |
download | astro-1b7ed7a31a3a7a244440562a8e16aac1617c0114.tar.gz astro-1b7ed7a31a3a7a244440562a8e16aac1617c0114.tar.zst astro-1b7ed7a31a3a7a244440562a8e16aac1617c0114.zip |
[ci] format
-rw-r--r-- | packages/db/src/core/tokens.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/db/src/core/tokens.ts b/packages/db/src/core/tokens.ts index e1c33bf73..a49e81e36 100644 --- a/packages/db/src/core/tokens.ts +++ b/packages/db/src/core/tokens.ts @@ -2,12 +2,16 @@ import { readFile } from 'node:fs/promises'; import { homedir } from 'node:os'; import { join } from 'node:path'; import { pathToFileURL } from 'node:url'; +import ci from 'ci-info'; import { green } from 'kleur/colors'; import ora from 'ora'; import { safeFetch } from '../runtime/utils.js'; -import { MISSING_PROJECT_ID_ERROR, MISSING_SESSION_ID_CI_ERROR, MISSING_SESSION_ID_ERROR } from './errors.js'; +import { + MISSING_PROJECT_ID_ERROR, + MISSING_SESSION_ID_CI_ERROR, + MISSING_SESSION_ID_ERROR, +} from './errors.js'; import { getAstroStudioEnv, getAstroStudioUrl } from './utils.js'; -import ci from 'ci-info'; export const SESSION_LOGIN_FILE = pathToFileURL(join(homedir(), '.astro', 'session-token')); export const PROJECT_ID_FILE = pathToFileURL(join(process.cwd(), '.astro', 'link')); @@ -183,7 +187,7 @@ export async function getManagedAppTokenOrExit(token?: string): Promise<ManagedA } const sessionToken = await getSessionIdFromFile(); if (!sessionToken) { - if(ci.isCI) { + if (ci.isCI) { // eslint-disable-next-line no-console console.error(MISSING_SESSION_ID_CI_ERROR); } else { |