[ci] format

This commit is contained in:
bholmesdev 2023-05-09 16:20:37 +00:00 committed by fredkbot
parent 630f8c8ef6
commit 10e34b6d71
3 changed files with 10 additions and 11 deletions

View file

@ -10,17 +10,16 @@ import { info, warn, type LogOptions } from '../core/logger/core.js';
import { isRelativePath } from '../core/path.js';
import { CONTENT_TYPES_FILE, VIRTUAL_MODULE_ID } from './consts.js';
import {
getContentEntryConfigByExtMap,
getContentPaths,
getEntryInfo,
getEntrySlug,
getEntryType,
loadContentConfig,
NoCollectionError,
type ContentConfig,
type ContentObservable,
type ContentPaths,
type EntryInfo,
getContentEntryConfigByExtMap,
getEntrySlug,
} from './utils.js';
type ChokidarEvent = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';

View file

@ -10,16 +10,16 @@ import { AstroError } from '../core/errors/errors.js';
import { escapeViteEnvReferences, getFileInfo } from '../vite-plugin-utils/index.js';
import { CONTENT_FLAG } from './consts.js';
import {
getContentEntryConfigByExtMap,
getContentEntryExts,
getContentPaths,
getEntryData,
getEntryInfo,
parseEntrySlug,
getEntryType,
globalContentConfigObserver,
NoCollectionError,
parseEntrySlug,
type ContentConfig,
getContentEntryConfigByExtMap,
} from './utils.js';
function isContentFlagImport(viteId: string) {

View file

@ -1,21 +1,21 @@
import glob, { type Options as FastGlobOptions } from 'fast-glob';
import fsMod from 'node:fs';
import { extname } from 'node:path';
import { fileURLToPath, pathToFileURL } from 'node:url';
import type { Plugin } from 'vite';
import type { AstroSettings } from '../@types/astro.js';
import { rootRelativePath } from '../core/util.js';
import { VIRTUAL_MODULE_ID } from './consts.js';
import {
getContentEntryConfigByExtMap,
getContentPaths,
getExtGlob,
type ContentPaths,
getEntryInfo,
NoCollectionError,
getEntrySlug,
getExtGlob,
hasUnderscoreBelowContentDirectoryPath,
NoCollectionError,
type ContentPaths,
} from './utils.js';
import { rootRelativePath } from '../core/util.js';
import { fileURLToPath, pathToFileURL } from 'node:url';
import { extname } from 'node:path';
interface AstroContentVirtualModPluginParams {
settings: AstroSettings;