refactor: ASTRO_CI_PERFORMANCE_RUN -> ASTRO_PERFORMANCE_BENCHMARK

This commit is contained in:
bholmesdev 2023-02-28 10:24:21 -05:00
parent 79d30b1f31
commit b573e53e9c
3 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ import { cyan, bold, dim } from 'kleur/colors';
// Skip nonessential remark / rehype plugins for a fair comparison. // Skip nonessential remark / rehype plugins for a fair comparison.
// This includes heading ID generation, syntax highlighting, GFM, and Smartypants. // This includes heading ID generation, syntax highlighting, GFM, and Smartypants.
process.env.ASTRO_CI_PERFORMANCE_RUN = true; process.env.ASTRO_PERFORMANCE_BENCHMARK = true;
const extByFixture = { const extByFixture = {
md: '.md', md: '.md',
@ -70,7 +70,7 @@ async function benchmark({ fixtures, templates }) {
}); });
} }
} finally { } finally {
process.env.ASTRO_CI_PERFORMANCE_RUN = false; process.env.ASTRO_PERFORMANCE_BENCHMARK = false;
} }
})(); })();

View file

@ -25,7 +25,7 @@ import remarkShiki from './remark-shiki.js';
import { isRelativePath, jsToTreeNode } from './utils.js'; import { isRelativePath, jsToTreeNode } from './utils.js';
// Skip nonessential plugins during performance benchmark runs // Skip nonessential plugins during performance benchmark runs
const isPerformanceBenchmark = Boolean(process.env.ASTRO_CI_PERFORMANCE_RUN); const isPerformanceBenchmark = Boolean(process.env.ASTRO_PERFORMANCE_BENCHMARK);
export function recmaInjectImportMetaEnvPlugin({ export function recmaInjectImportMetaEnvPlugin({
importMetaEnv, importMetaEnv,

View file

@ -40,7 +40,7 @@ export const markdownConfigDefaults: Omit<Required<AstroMarkdownOptions>, 'draft
}; };
// Skip nonessential plugins during performance benchmark runs // Skip nonessential plugins during performance benchmark runs
const isPerformanceBenchmark = Boolean(process.env.ASTRO_CI_PERFORMANCE_RUN); const isPerformanceBenchmark = Boolean(process.env.ASTRO_PERFORMANCE_BENCHMARK);
/** Shared utility for rendering markdown */ /** Shared utility for rendering markdown */
export async function renderMarkdown( export async function renderMarkdown(