mirror of
https://github.com/withastro/astro.git
synced 2025-03-24 23:21:57 -05:00
[ci] format
This commit is contained in:
parent
70945dd918
commit
87ce2381b6
10 changed files with 11 additions and 11 deletions
packages
astro/src
assets/endpoint
core
db
integrations
|
@ -1,3 +1,4 @@
|
|||
import { readFile } from 'node:fs/promises';
|
||||
/* eslint-disable no-console */
|
||||
import os from 'node:os';
|
||||
import { isAbsolute } from 'node:path';
|
||||
|
@ -5,7 +6,6 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
|
|||
// @ts-expect-error
|
||||
import { assetsDir, imageConfig, outDir } from 'astro:assets';
|
||||
import { isRemotePath, removeQueryString } from '@astrojs/internal-helpers/path';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import * as mime from 'mrmime';
|
||||
import type { APIRoute } from '../../@types/astro.js';
|
||||
import { getConfiguredImageService } from '../internal.js';
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import fs, { existsSync } from 'node:fs';
|
||||
import type http from 'node:http';
|
||||
import type { AddressInfo } from 'node:net';
|
||||
import { green } from 'kleur/colors';
|
||||
import { performance } from 'node:perf_hooks';
|
||||
import { green } from 'kleur/colors';
|
||||
import { gt, major, minor, patch } from 'semver';
|
||||
import type * as vite from 'vite';
|
||||
import type { AstroInlineConfig } from '../../@types/astro.js';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type http from 'node:http';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { performance } from 'node:perf_hooks';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { type PreviewServer as VitePreviewServer, preview } from 'vite';
|
||||
import type { AstroSettings } from '../../@types/astro.js';
|
||||
import type { Logger } from '../logger/core.js';
|
||||
|
|
|
@ -8,8 +8,8 @@ import type {
|
|||
} from '../../../@types/astro.js';
|
||||
import type { Logger } from '../../logger/core.js';
|
||||
|
||||
import { createRequire } from 'node:module';
|
||||
import nodeFs from 'node:fs';
|
||||
import { createRequire } from 'node:module';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { bold } from 'kleur/colors';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import fsMod, { existsSync } from 'node:fs';
|
||||
import { performance } from 'node:perf_hooks';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { dim } from 'kleur/colors';
|
||||
import { type HMRPayload, createServer } from 'vite';
|
||||
import type { AstroConfig, AstroInlineConfig, AstroSettings } from '../../@types/astro.js';
|
||||
|
@ -29,7 +30,6 @@ import type { Logger } from '../logger/core.js';
|
|||
import { formatErrorMessage } from '../messages.js';
|
||||
import { ensureProcessNodeEnv } from '../util.js';
|
||||
import { writeFiles } from './write-files.js';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
export type SyncOptions = {
|
||||
/**
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { existsSync } from 'node:fs';
|
||||
import { parseArgs } from 'node:util';
|
||||
import { mkdir, writeFile } from 'node:fs/promises';
|
||||
import { dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { parseArgs } from 'node:util';
|
||||
import { type ManagedAppToken, getManagedAppTokenOrExit } from '@astrojs/studio';
|
||||
import { LibsqlError } from '@libsql/client';
|
||||
import type { AstroConfig, AstroIntegration } from 'astro';
|
||||
import { mkdir, writeFile } from 'node:fs/promises';
|
||||
import { blue, yellow } from 'kleur/colors';
|
||||
import {
|
||||
type HMRPayload,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import assert from 'node:assert/strict';
|
||||
import { after, before, describe, it } from 'node:test';
|
||||
import { relative } from 'node:path';
|
||||
import { after, before, describe, it } from 'node:test';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import testAdapter from '../../astro/test/test-adapter.js';
|
||||
import { loadFixture } from '../../astro/test/test-utils.js';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import https from 'node:https';
|
||||
import fs from 'node:fs';
|
||||
import http from 'node:http';
|
||||
import https from 'node:https';
|
||||
import type { PreviewServer } from 'astro';
|
||||
import type { NodeApp } from 'astro/app/node';
|
||||
import enableDestroy from 'server-destroy';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { createRequire } from 'node:module';
|
||||
import * as fs from 'node:fs';
|
||||
import { createRequire } from 'node:module';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import type { PartytownConfig } from '@builder.io/partytown/integration';
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { type WriteStream, createWriteStream } from 'node:fs';
|
||||
import { mkdir } from 'node:fs/promises';
|
||||
import { normalize, resolve } from 'node:path';
|
||||
import { Readable, pipeline } from 'node:stream';
|
||||
import { promisify } from 'node:util';
|
||||
import { mkdir } from 'node:fs/promises';
|
||||
import replace from 'stream-replace-string';
|
||||
|
||||
import { SitemapAndIndexStream, SitemapStream } from 'sitemap';
|
||||
|
|
Loading…
Add table
Reference in a new issue