Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic authored and astrobot-houston committed Jan 16, 2025
1 parent 2d259cf commit 9f34e3f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/astro/src/content/content-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
safeStringify,
} from './utils.js';
import { type WrappedWatcher, createWatcherWrapper } from './watcher.js';
import type { AstroConfig } from '../types/public/index.js';

export interface ContentLayerOptions {
store: MutableDataStore;
Expand All @@ -32,7 +31,6 @@ export interface ContentLayerOptions {
watcher?: FSWatcher;
}


export class ContentLayer {
#logger: Logger;
#store: MutableDataStore;
Expand Down Expand Up @@ -184,7 +182,7 @@ export class ContentLayer {
} = this.#settings.config;

const astroConfigDigest = safeStringify(hashableConfig);

const { digest: currentConfigDigest } = contentConfig.config;
this.#lastConfigDigest = currentConfigDigest;

Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/core/dev/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export async function createContainer({
watcher: viteServer.watcher,
});


const container: Container = {
inlineConfig: inlineConfig ?? {},
fs,
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/dev/restart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type nodeFs from 'node:fs';
import { fileURLToPath } from 'node:url';
import * as vite from 'vite';
import { globalContentLayer } from '../../content/content-layer.js';
import { attachContentServerListeners } from '../../content/server-listeners.js';
import { eventCliSession, telemetry } from '../../events/index.js';
import { SETTINGS_FILE } from '../../preferences/constants.js';
import type { AstroSettings } from '../../types/astro.js';
Expand All @@ -13,7 +14,6 @@ import { createSafeError } from '../errors/index.js';
import { formatErrorMessage } from '../messages.js';
import type { Container } from './container.js';
import { createContainer, startContainer } from './container.js';
import { attachContentServerListeners } from '../../content/server-listeners.js';

async function createRestartedContainer(
container: Container,
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/test/content-layer.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import assert from 'node:assert/strict';
import { promises as fs, existsSync } from 'node:fs';
import { setTimeout } from 'node:timers/promises';
import { sep } from 'node:path';
import { sep as posixSep } from 'node:path/posix';
import { Writable } from 'node:stream';
import { after, before, describe, it } from 'node:test';
import { setTimeout } from 'node:timers/promises';
import * as cheerio from 'cheerio';
import * as devalue from 'devalue';
import { Logger } from '../dist/core/logger/core.js';
Expand Down

0 comments on commit 9f34e3f

Please sign in to comment.