full site update
This commit is contained in:
4
node_modules/astro/dist/events/session.d.ts
generated
vendored
4
node_modules/astro/dist/events/session.d.ts
generated
vendored
@@ -1,4 +1,4 @@
|
||||
import type { AstroUserConfig } from '../@types/astro.js';
|
||||
import type { AstroUserConfig } from '../types/public/config.js';
|
||||
interface EventPayload {
|
||||
cliCommand: string;
|
||||
config?: ConfigInfo;
|
||||
@@ -11,7 +11,7 @@ type ConfigInfoRecord = Record<string, ConfigInfoValue>;
|
||||
type ConfigInfoBase = {
|
||||
[alias in keyof AstroUserConfig]: ConfigInfoValue | ConfigInfoRecord;
|
||||
};
|
||||
export interface ConfigInfo extends ConfigInfoBase {
|
||||
interface ConfigInfo extends ConfigInfoBase {
|
||||
build: ConfigInfoRecord;
|
||||
image: ConfigInfoRecord;
|
||||
markdown: ConfigInfoRecord;
|
||||
|
6
node_modules/astro/dist/events/session.js
generated
vendored
6
node_modules/astro/dist/events/session.js
generated
vendored
@@ -1,4 +1,4 @@
|
||||
import { AstroConfigSchema } from "../core/config/schema.js";
|
||||
import { AstroConfigSchema } from "../core/config/schemas/index.js";
|
||||
const EVENT_SESSION = "ASTRO_CLI_SESSION_STARTED";
|
||||
function measureIsDefined(val) {
|
||||
if (val === void 0) {
|
||||
@@ -53,7 +53,9 @@ function createAnonymousConfigInfo(userConfig) {
|
||||
vite: userConfig.vite ? sanitizeConfigInfo(userConfig.vite, Object.keys(userConfig.vite)) : void 0
|
||||
};
|
||||
configInfo.build.format = measureStringLiteral(userConfig.build?.format);
|
||||
configInfo.markdown.syntaxHighlight = measureStringLiteral(userConfig.markdown?.syntaxHighlight);
|
||||
const syntaxHighlight = userConfig.markdown?.syntaxHighlight;
|
||||
const syntaxHighlightType = typeof syntaxHighlight === "object" ? syntaxHighlight.type : syntaxHighlight;
|
||||
configInfo.markdown.syntaxHighlight = measureStringLiteral(syntaxHighlightType);
|
||||
configInfo.output = measureStringLiteral(userConfig.output);
|
||||
configInfo.scopedStyleStrategy = measureStringLiteral(userConfig.scopedStyleStrategy);
|
||||
configInfo.trailingSlash = measureStringLiteral(userConfig.trailingSlash);
|
||||
|
Reference in New Issue
Block a user