refactor: ASTRO_CI_PERFORMANCE_RUN -> ASTRO_PERFORMANCE_BENCHMARK
This commit is contained in:
parent
79d30b1f31
commit
b573e53e9c
3 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ import { cyan, bold, dim } from 'kleur/colors';
|
|||
|
||||
// Skip nonessential remark / rehype plugins for a fair comparison.
|
||||
// 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 = {
|
||||
md: '.md',
|
||||
|
@ -70,7 +70,7 @@ async function benchmark({ fixtures, templates }) {
|
|||
});
|
||||
}
|
||||
} finally {
|
||||
process.env.ASTRO_CI_PERFORMANCE_RUN = false;
|
||||
process.env.ASTRO_PERFORMANCE_BENCHMARK = false;
|
||||
}
|
||||
})();
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ import remarkShiki from './remark-shiki.js';
|
|||
import { isRelativePath, jsToTreeNode } from './utils.js';
|
||||
|
||||
// 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({
|
||||
importMetaEnv,
|
||||
|
|
|
@ -40,7 +40,7 @@ export const markdownConfigDefaults: Omit<Required<AstroMarkdownOptions>, 'draft
|
|||
};
|
||||
|
||||
// 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 */
|
||||
export async function renderMarkdown(
|
||||
|
|
Loading…
Reference in a new issue