mirror of
https://github.com/withastro/astro.git
synced 2025-03-31 23:31:30 -05:00
[ci] format
This commit is contained in:
parent
ca605f4dd8
commit
1b7ed7a31a
1 changed files with 7 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue