[ci] format
This commit is contained in:
parent
630f8c8ef6
commit
10e34b6d71
3 changed files with 10 additions and 11 deletions
|
@ -10,17 +10,16 @@ import { info, warn, type LogOptions } from '../core/logger/core.js';
|
||||||
import { isRelativePath } from '../core/path.js';
|
import { isRelativePath } from '../core/path.js';
|
||||||
import { CONTENT_TYPES_FILE, VIRTUAL_MODULE_ID } from './consts.js';
|
import { CONTENT_TYPES_FILE, VIRTUAL_MODULE_ID } from './consts.js';
|
||||||
import {
|
import {
|
||||||
|
getContentEntryConfigByExtMap,
|
||||||
getContentPaths,
|
getContentPaths,
|
||||||
getEntryInfo,
|
getEntryInfo,
|
||||||
|
getEntrySlug,
|
||||||
getEntryType,
|
getEntryType,
|
||||||
loadContentConfig,
|
loadContentConfig,
|
||||||
NoCollectionError,
|
NoCollectionError,
|
||||||
type ContentConfig,
|
type ContentConfig,
|
||||||
type ContentObservable,
|
type ContentObservable,
|
||||||
type ContentPaths,
|
type ContentPaths,
|
||||||
type EntryInfo,
|
|
||||||
getContentEntryConfigByExtMap,
|
|
||||||
getEntrySlug,
|
|
||||||
} from './utils.js';
|
} from './utils.js';
|
||||||
|
|
||||||
type ChokidarEvent = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
|
type ChokidarEvent = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
|
||||||
|
|
|
@ -10,16 +10,16 @@ import { AstroError } from '../core/errors/errors.js';
|
||||||
import { escapeViteEnvReferences, getFileInfo } from '../vite-plugin-utils/index.js';
|
import { escapeViteEnvReferences, getFileInfo } from '../vite-plugin-utils/index.js';
|
||||||
import { CONTENT_FLAG } from './consts.js';
|
import { CONTENT_FLAG } from './consts.js';
|
||||||
import {
|
import {
|
||||||
|
getContentEntryConfigByExtMap,
|
||||||
getContentEntryExts,
|
getContentEntryExts,
|
||||||
getContentPaths,
|
getContentPaths,
|
||||||
getEntryData,
|
getEntryData,
|
||||||
getEntryInfo,
|
getEntryInfo,
|
||||||
parseEntrySlug,
|
|
||||||
getEntryType,
|
getEntryType,
|
||||||
globalContentConfigObserver,
|
globalContentConfigObserver,
|
||||||
NoCollectionError,
|
NoCollectionError,
|
||||||
|
parseEntrySlug,
|
||||||
type ContentConfig,
|
type ContentConfig,
|
||||||
getContentEntryConfigByExtMap,
|
|
||||||
} from './utils.js';
|
} from './utils.js';
|
||||||
|
|
||||||
function isContentFlagImport(viteId: string) {
|
function isContentFlagImport(viteId: string) {
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
import glob, { type Options as FastGlobOptions } from 'fast-glob';
|
import glob, { type Options as FastGlobOptions } from 'fast-glob';
|
||||||
import fsMod from 'node:fs';
|
import fsMod from 'node:fs';
|
||||||
|
import { extname } from 'node:path';
|
||||||
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
||||||
import type { Plugin } from 'vite';
|
import type { Plugin } from 'vite';
|
||||||
import type { AstroSettings } from '../@types/astro.js';
|
import type { AstroSettings } from '../@types/astro.js';
|
||||||
|
import { rootRelativePath } from '../core/util.js';
|
||||||
import { VIRTUAL_MODULE_ID } from './consts.js';
|
import { VIRTUAL_MODULE_ID } from './consts.js';
|
||||||
import {
|
import {
|
||||||
getContentEntryConfigByExtMap,
|
getContentEntryConfigByExtMap,
|
||||||
getContentPaths,
|
getContentPaths,
|
||||||
getExtGlob,
|
|
||||||
type ContentPaths,
|
|
||||||
getEntryInfo,
|
getEntryInfo,
|
||||||
NoCollectionError,
|
|
||||||
getEntrySlug,
|
getEntrySlug,
|
||||||
|
getExtGlob,
|
||||||
hasUnderscoreBelowContentDirectoryPath,
|
hasUnderscoreBelowContentDirectoryPath,
|
||||||
|
NoCollectionError,
|
||||||
|
type ContentPaths,
|
||||||
} from './utils.js';
|
} from './utils.js';
|
||||||
import { rootRelativePath } from '../core/util.js';
|
|
||||||
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
||||||
import { extname } from 'node:path';
|
|
||||||
|
|
||||||
interface AstroContentVirtualModPluginParams {
|
interface AstroContentVirtualModPluginParams {
|
||||||
settings: AstroSettings;
|
settings: AstroSettings;
|
||||||
|
|
Loading…
Add table
Reference in a new issue