full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -1,4 +1,4 @@
export interface ConfigOptions {
interface ConfigOptions {
name: string;
}
export declare class GlobalConfig {
@@ -17,3 +17,4 @@ export declare class GlobalConfig {
has(key: string): boolean;
set(key: string, value: any): void;
}
export {};

View File

@@ -34,8 +34,7 @@ class GlobalConfig {
file;
_store;
get store() {
if (this._store)
return this._store;
if (this._store) return this._store;
this.ensureDir();
if (fs.existsSync(this.file)) {
try {

View File

@@ -73,8 +73,7 @@ class AstroTelemetry {
return this.config.clear();
}
isValidNotice() {
if (!this.notifyDate)
return false;
if (!this.notifyDate) return false;
const current = Number(this.notifyDate);
const valid = new Date(VALID_TELEMETRY_NOTICE_DATE).valueOf();
return current > valid;

View File

@@ -1,4 +1,3 @@
/// <reference types="node" resolution-mode="require"/>
/**
* Astro Telemetry -- System Info
*

View File

@@ -1,5 +1,5 @@
import os from "node:os";
import { isCI, name as ciName } from "ci-info";
import { name as ciName, isCI } from "ci-info";
import isDocker from "is-docker";
import isWSL from "is-wsl";
let meta;