From 0daaa9efba6c7caeffcd23ce279f4f54080e9bd6 Mon Sep 17 00:00:00 2001 From: bluwy Date: Mon, 26 Jun 2023 09:30:08 +0000 Subject: [PATCH] [ci] format --- .../astro/src/content/vite-plugin-content-virtual-mod.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/content/vite-plugin-content-virtual-mod.ts b/packages/astro/src/content/vite-plugin-content-virtual-mod.ts index 6ab920c4d84e..62ba612e962e 100644 --- a/packages/astro/src/content/vite-plugin-content-virtual-mod.ts +++ b/packages/astro/src/content/vite-plugin-content-virtual-mod.ts @@ -6,6 +6,7 @@ import pLimit from 'p-limit'; import type { Plugin } from 'vite'; import type { AstroSettings, ContentEntryType } from '../@types/astro.js'; import { AstroError, AstroErrorData } from '../core/errors/index.js'; +import { appendForwardSlash } from '../core/path.js'; import { rootRelativePath } from '../core/util.js'; import { VIRTUAL_MODULE_ID } from './consts.js'; import { @@ -21,7 +22,6 @@ import { type ContentLookupMap, type ContentPaths, } from './utils.js'; -import { appendForwardSlash } from '../core/path.js'; interface AstroContentVirtualModPluginParams { settings: AstroSettings; @@ -211,5 +211,9 @@ const UnexpectedLookupMapError = new AstroError({ function globWithUnderscoresIgnored(relContentDir: string, exts: string[]): string[] { const extGlob = getExtGlob(exts); const contentDir = appendForwardSlash(relContentDir); - return [`${contentDir}**/*${extGlob}`, `!${contentDir}_*/**${extGlob}`, `!${contentDir}_*${extGlob}`]; + return [ + `${contentDir}**/*${extGlob}`, + `!${contentDir}_*/**${extGlob}`, + `!${contentDir}_*${extGlob}`, + ]; }