Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored and astrobot-houston committed Jun 26, 2023
1 parent 478cd9d commit 0daaa9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/astro/src/content/vite-plugin-content-virtual-mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -21,7 +22,6 @@ import {
type ContentLookupMap,
type ContentPaths,
} from './utils.js';
import { appendForwardSlash } from '../core/path.js';

interface AstroContentVirtualModPluginParams {
settings: AstroSettings;
Expand Down Expand Up @@ -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}`,
];
}

0 comments on commit 0daaa9e

Please sign in to comment.