Skip to content

Commit 87ce238

Browse files
florian-lefebvreastrobot-houston
authored andcommitted
[ci] format
1 parent 70945dd commit 87ce238

10 files changed

Lines changed: 11 additions & 11 deletions

File tree

packages/astro/src/assets/endpoint/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { readFile } from 'node:fs/promises';
12
/* eslint-disable no-console */
23
import os from 'node:os';
34
import { isAbsolute } from 'node:path';
45
import { fileURLToPath, pathToFileURL } from 'node:url';
56
// @ts-expect-error
67
import { assetsDir, imageConfig, outDir } from 'astro:assets';
78
import { isRemotePath, removeQueryString } from '@astrojs/internal-helpers/path';
8-
import { readFile } from 'node:fs/promises';
99
import * as mime from 'mrmime';
1010
import type { APIRoute } from '../../@types/astro.js';
1111
import { getConfiguredImageService } from '../internal.js';

packages/astro/src/core/dev/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import fs, { existsSync } from 'node:fs';
22
import type http from 'node:http';
33
import type { AddressInfo } from 'node:net';
4-
import { green } from 'kleur/colors';
54
import { performance } from 'node:perf_hooks';
5+
import { green } from 'kleur/colors';
66
import { gt, major, minor, patch } from 'semver';
77
import type * as vite from 'vite';
88
import type { AstroInlineConfig } from '../../@types/astro.js';

packages/astro/src/core/preview/static-preview-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type http from 'node:http';
2-
import { fileURLToPath } from 'node:url';
32
import { performance } from 'node:perf_hooks';
3+
import { fileURLToPath } from 'node:url';
44
import { type PreviewServer as VitePreviewServer, preview } from 'vite';
55
import type { AstroSettings } from '../../@types/astro.js';
66
import type { Logger } from '../logger/core.js';

packages/astro/src/core/routing/manifest/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import type {
88
} from '../../../@types/astro.js';
99
import type { Logger } from '../../logger/core.js';
1010

11-
import { createRequire } from 'node:module';
1211
import nodeFs from 'node:fs';
12+
import { createRequire } from 'node:module';
1313
import path from 'node:path';
1414
import { fileURLToPath } from 'node:url';
1515
import { bold } from 'kleur/colors';

packages/astro/src/core/sync/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import fsMod, { existsSync } from 'node:fs';
22
import { performance } from 'node:perf_hooks';
3+
import { fileURLToPath } from 'node:url';
34
import { dim } from 'kleur/colors';
45
import { type HMRPayload, createServer } from 'vite';
56
import type { AstroConfig, AstroInlineConfig, AstroSettings } from '../../@types/astro.js';
@@ -29,7 +30,6 @@ import type { Logger } from '../logger/core.js';
2930
import { formatErrorMessage } from '../messages.js';
3031
import { ensureProcessNodeEnv } from '../util.js';
3132
import { writeFiles } from './write-files.js';
32-
import { fileURLToPath } from 'node:url';
3333

3434
export type SyncOptions = {
3535
/**

packages/db/src/core/integration/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { existsSync } from 'node:fs';
2-
import { parseArgs } from 'node:util';
2+
import { mkdir, writeFile } from 'node:fs/promises';
33
import { dirname } from 'node:path';
44
import { fileURLToPath } from 'node:url';
5+
import { parseArgs } from 'node:util';
56
import { type ManagedAppToken, getManagedAppTokenOrExit } from '@astrojs/studio';
67
import { LibsqlError } from '@libsql/client';
78
import type { AstroConfig, AstroIntegration } from 'astro';
8-
import { mkdir, writeFile } from 'node:fs/promises';
99
import { blue, yellow } from 'kleur/colors';
1010
import {
1111
type HMRPayload,

packages/db/test/local-prod.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'node:assert/strict';
2-
import { after, before, describe, it } from 'node:test';
32
import { relative } from 'node:path';
3+
import { after, before, describe, it } from 'node:test';
44
import { fileURLToPath } from 'node:url';
55
import testAdapter from '../../astro/test/test-adapter.js';
66
import { loadFixture } from '../../astro/test/test-utils.js';

packages/integrations/node/src/standalone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import https from 'node:https';
21
import fs from 'node:fs';
32
import http from 'node:http';
3+
import https from 'node:https';
44
import type { PreviewServer } from 'astro';
55
import type { NodeApp } from 'astro/app/node';
66
import enableDestroy from 'server-destroy';

packages/integrations/partytown/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { createRequire } from 'node:module';
21
import * as fs from 'node:fs';
2+
import { createRequire } from 'node:module';
33
import path from 'node:path';
44
import { fileURLToPath } from 'node:url';
55
import type { PartytownConfig } from '@builder.io/partytown/integration';

packages/integrations/sitemap/src/write-sitemap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { type WriteStream, createWriteStream } from 'node:fs';
2+
import { mkdir } from 'node:fs/promises';
23
import { normalize, resolve } from 'node:path';
34
import { Readable, pipeline } from 'node:stream';
45
import { promisify } from 'node:util';
5-
import { mkdir } from 'node:fs/promises';
66
import replace from 'stream-replace-string';
77

88
import { SitemapAndIndexStream, SitemapStream } from 'sitemap';

0 commit comments

Comments
 (0)