mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
Remove more unused code (#11598)
This commit is contained in:
parent
c2d6c1f727
commit
69d54b4bf2
32 changed files with 41 additions and 403 deletions
|
@ -2,7 +2,6 @@ import path from 'node:path';
|
|||
import { fileURLToPath } from 'node:url';
|
||||
import { builtinModules } from 'node:module';
|
||||
|
||||
import { FlatCompat } from '@eslint/eslintrc';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
// plugins
|
||||
|
@ -16,12 +15,6 @@ const typescriptParser = tseslint.parser;
|
|||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
// ref: https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config
|
||||
// mimic CommonJS variables -- not needed if using CommonJS
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
});
|
||||
|
||||
export default [
|
||||
// If ignores is used without any other keys in the configuration object, then the patterns act as global ignores.
|
||||
// ref: https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores
|
||||
|
@ -43,8 +36,7 @@ export default [
|
|||
|
||||
...tseslint.configs.recommendedTypeChecked,
|
||||
...tseslint.configs.stylisticTypeChecked,
|
||||
// mimic ESLintRC-style extends
|
||||
...compat.extends('plugin:regexp/recommended'),
|
||||
regexpEslint.configs['flat/recommended'],
|
||||
{
|
||||
languageOptions: {
|
||||
parser: typescriptParser,
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
"@biomejs/biome": "1.8.1",
|
||||
"@changesets/changelog-github": "^0.5.0",
|
||||
"@changesets/cli": "^2.27.7",
|
||||
"@eslint/eslintrc": "^3.1.0",
|
||||
"@types/node": "^18.17.8",
|
||||
"esbuild": "^0.21.5",
|
||||
"eslint": "^9.8.0",
|
||||
|
@ -64,10 +63,8 @@
|
|||
"eslint-plugin-regexp": "^2.6.0",
|
||||
"globby": "^14.0.2",
|
||||
"only-allow": "^1.2.1",
|
||||
"organize-imports-cli": "^0.10.0",
|
||||
"prettier": "^3.3.3",
|
||||
"prettier-plugin-astro": "^0.14.1",
|
||||
"tiny-glob": "^0.2.9",
|
||||
"turbo": "^1.13.4",
|
||||
"typescript": "~5.5.4",
|
||||
"typescript-eslint": "^7.18.0"
|
||||
|
@ -89,10 +86,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"overrides": {
|
||||
"organize-imports-cli>ts-morph": "^19.0.0",
|
||||
"tsconfig-resolver>type-fest": "3.0.0"
|
||||
},
|
||||
"peerDependencyRules": {
|
||||
"ignoreMissing": [
|
||||
"rollup",
|
||||
|
|
|
@ -141,7 +141,6 @@
|
|||
"aria-query": "^5.3.0",
|
||||
"axobject-query": "^4.1.0",
|
||||
"boxen": "7.1.1",
|
||||
"chokidar": "^3.6.0",
|
||||
"ci-info": "^4.0.0",
|
||||
"clsx": "^2.1.1",
|
||||
"common-ancestor-path": "^1.0.1",
|
||||
|
@ -198,7 +197,6 @@
|
|||
"@types/babel__generator": "^7.6.8",
|
||||
"@types/babel__traverse": "^7.20.6",
|
||||
"@types/common-ancestor-path": "^1.0.2",
|
||||
"@types/connect": "^3.4.38",
|
||||
"@types/cssesc": "^3.0.2",
|
||||
"@types/debug": "^4.1.12",
|
||||
"@types/diff": "^5.2.1",
|
||||
|
@ -208,11 +206,8 @@
|
|||
"@types/html-escaper": "^3.0.2",
|
||||
"@types/http-cache-semantics": "^4.0.4",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/probe-image-size": "^7.2.5",
|
||||
"@types/prompts": "^2.4.9",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@types/send": "^0.17.4",
|
||||
"@types/unist": "^3.0.2",
|
||||
"@types/yargs-parser": "^21.0.3",
|
||||
"astro-scripts": "workspace:*",
|
||||
"cheerio": "1.0.0-rc.12",
|
||||
|
@ -229,7 +224,6 @@
|
|||
"remark-code-titles": "^0.1.2",
|
||||
"rollup": "^4.19.1",
|
||||
"sass": "^1.77.8",
|
||||
"srcset-parse": "^1.1.0",
|
||||
"undici": "^6.19.5",
|
||||
"unified": "^11.0.5"
|
||||
},
|
||||
|
|
|
@ -786,7 +786,7 @@ async function tryToInstallIntegrations({
|
|||
}
|
||||
}
|
||||
|
||||
export async function validateIntegrations(integrations: string[]): Promise<IntegrationInfo[]> {
|
||||
async function validateIntegrations(integrations: string[]): Promise<IntegrationInfo[]> {
|
||||
const spinner = ora('Resolving packages...').start();
|
||||
try {
|
||||
const integrationEntries = await Promise.all(
|
||||
|
|
|
@ -198,7 +198,7 @@ export async function fetchPackageVersions(packageName: string): Promise<string[
|
|||
//
|
||||
// A copy of this function also exists in the create-astro package
|
||||
let _registry: string;
|
||||
export async function getRegistry(): Promise<string> {
|
||||
async function getRegistry(): Promise<string> {
|
||||
if (_registry) return _registry;
|
||||
const fallback = 'https://registry.npmjs.org';
|
||||
const packageManager = (await preferredPM(process.cwd()))?.name || 'npm';
|
||||
|
|
|
@ -26,7 +26,7 @@ export type ContentLookupMap = {
|
|||
[collectionName: string]: { type: 'content' | 'data'; entries: { [lookupId: string]: string } };
|
||||
};
|
||||
|
||||
export const collectionConfigParser = z.union([
|
||||
const collectionConfigParser = z.union([
|
||||
z.object({
|
||||
type: z.literal('content').optional().default('content'),
|
||||
schema: z.any().optional(),
|
||||
|
@ -37,7 +37,7 @@ export const collectionConfigParser = z.union([
|
|||
}),
|
||||
]);
|
||||
|
||||
export const contentConfigParser = z.object({
|
||||
const contentConfigParser = z.object({
|
||||
collections: z.record(collectionConfigParser),
|
||||
});
|
||||
|
||||
|
@ -46,11 +46,6 @@ export type ContentConfig = z.infer<typeof contentConfigParser>;
|
|||
|
||||
type EntryInternal = { rawData: string | undefined; filePath: string };
|
||||
|
||||
export const msg = {
|
||||
collectionConfigMissing: (collection: string) =>
|
||||
`${collection} does not have a config. We suggest adding one for type safety!`,
|
||||
};
|
||||
|
||||
export function parseEntrySlug({
|
||||
id,
|
||||
collection,
|
||||
|
@ -313,7 +308,7 @@ export function getEntryType(
|
|||
}
|
||||
}
|
||||
|
||||
export function hasUnderscoreBelowContentDirectoryPath(
|
||||
function hasUnderscoreBelowContentDirectoryPath(
|
||||
fileUrl: URL,
|
||||
contentDir: ContentPaths['contentDir']
|
||||
): boolean {
|
||||
|
@ -388,7 +383,7 @@ export function hasContentFlag(viteId: string, flag: (typeof CONTENT_FLAGS)[numb
|
|||
return flags.has(flag);
|
||||
}
|
||||
|
||||
export async function loadContentConfig({
|
||||
async function loadContentConfig({
|
||||
fs,
|
||||
settings,
|
||||
viteServer,
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { bgGreen, black, blue, bold, dim, green, magenta, red } from 'kleur/colors';
|
||||
import PQueue from 'p-queue';
|
||||
import type { OutputAsset, OutputChunk } from 'rollup';
|
||||
import type {
|
||||
AstroConfig,
|
||||
AstroSettings,
|
||||
|
@ -25,7 +23,6 @@ import { type BuildInternals, hasPrerenderedPages } from '../../core/build/inter
|
|||
import {
|
||||
isRelativePath,
|
||||
joinPaths,
|
||||
prependForwardSlash,
|
||||
removeLeadingForwardSlash,
|
||||
removeTrailingForwardSlash,
|
||||
} from '../../core/path.js';
|
||||
|
@ -57,31 +54,6 @@ function createEntryURL(filePath: string, outFolder: URL) {
|
|||
return new URL('./' + filePath + `?time=${Date.now()}`, outFolder);
|
||||
}
|
||||
|
||||
// Gives back a facadeId that is relative to the root.
|
||||
// ie, src/pages/index.astro instead of /Users/name..../src/pages/index.astro
|
||||
export function rootRelativeFacadeId(facadeId: string, settings: AstroSettings): string {
|
||||
return facadeId.slice(fileURLToPath(settings.config.root).length);
|
||||
}
|
||||
|
||||
// Determines of a Rollup chunk is an entrypoint page.
|
||||
export function chunkIsPage(
|
||||
settings: AstroSettings,
|
||||
output: OutputAsset | OutputChunk,
|
||||
internals: BuildInternals
|
||||
) {
|
||||
if (output.type !== 'chunk') {
|
||||
return false;
|
||||
}
|
||||
const chunk = output;
|
||||
if (chunk.facadeModuleId) {
|
||||
const facadeToEntryId = prependForwardSlash(
|
||||
rootRelativeFacadeId(chunk.facadeModuleId, settings)
|
||||
);
|
||||
return internals.entrySpecifierToBundleMap.has(facadeToEntryId);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export async function generatePages(options: StaticBuildOptions, internals: BuildInternals) {
|
||||
const generatePagesTimer = performance.now();
|
||||
const ssr = isServerLikeOutput(options.settings.config);
|
||||
|
|
|
@ -198,18 +198,6 @@ export function trackScriptPageDatas(
|
|||
}
|
||||
}
|
||||
|
||||
export function* getPageDatasByChunk(
|
||||
internals: BuildInternals,
|
||||
chunk: Rollup.RenderedChunk
|
||||
): Generator<PageBuildData, void, unknown> {
|
||||
const pagesByViteID = internals.pagesByViteID;
|
||||
for (const [modulePath] of Object.entries(chunk.modules)) {
|
||||
if (pagesByViteID.has(modulePath)) {
|
||||
yield pagesByViteID.get(modulePath)!;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function* getPageDatasByClientOnlyID(
|
||||
internals: BuildInternals,
|
||||
viteid: ViteID
|
||||
|
@ -264,7 +252,7 @@ export function getPageData(
|
|||
* @param internals Build Internals with all the pages
|
||||
* @param component path to the component, used to identify related pages
|
||||
*/
|
||||
export function getPagesDatasByComponent(
|
||||
function getPagesDatasByComponent(
|
||||
internals: BuildInternals,
|
||||
component: string
|
||||
): PageBuildData[] {
|
||||
|
@ -326,10 +314,6 @@ export function getPageDataByViteID(
|
|||
return undefined;
|
||||
}
|
||||
|
||||
export function hasPageDataByViteID(internals: BuildInternals, viteid: ViteID): boolean {
|
||||
return internals.pagesByViteID.has(viteid);
|
||||
}
|
||||
|
||||
export function hasPrerenderedPages(internals: BuildInternals) {
|
||||
for (const pageData of internals.pagesByKeys.values()) {
|
||||
if (pageData.route.prerender) {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import type { BuildOptions, Plugin as VitePlugin } from 'vite';
|
||||
import type { BuildOptions, Plugin as VitePlugin, Rollup } from 'vite';
|
||||
import type { AstroSettings } from '../../../@types/astro.js';
|
||||
import { viteID } from '../../util.js';
|
||||
import type { BuildInternals } from '../internal.js';
|
||||
import { getPageDataByViteID } from '../internal.js';
|
||||
import type { AstroBuildPlugin } from '../plugin.js';
|
||||
import type { OutputChunk, StaticBuildOptions } from '../types.js';
|
||||
import type { StaticBuildOptions } from '../types.js';
|
||||
import { shouldInlineAsset } from './util.js';
|
||||
|
||||
function virtualHoistedEntry(id: string) {
|
||||
|
@ -49,7 +49,7 @@ export function vitePluginHoistedScripts(
|
|||
},
|
||||
|
||||
async generateBundle(_options, bundle) {
|
||||
const considerInlining = new Map<string, OutputChunk>();
|
||||
const considerInlining = new Map<string, Rollup.OutputChunk>();
|
||||
const importedByOtherScripts = new Set<string>();
|
||||
|
||||
// Find all page entry points and create a map of the entry point to the hashed hoisted script.
|
||||
|
|
|
@ -113,7 +113,7 @@ export function pluginManifest(
|
|||
};
|
||||
}
|
||||
|
||||
export async function createManifest(
|
||||
async function createManifest(
|
||||
buildOpts: StaticBuildOptions,
|
||||
internals: BuildInternals
|
||||
): Promise<SerializedSSRManifest> {
|
||||
|
@ -137,11 +137,8 @@ export async function createManifest(
|
|||
|
||||
/**
|
||||
* It injects the manifest in the given output rollup chunk. It returns the new emitted code
|
||||
* @param buildOpts
|
||||
* @param internals
|
||||
* @param chunk
|
||||
*/
|
||||
export function injectManifest(manifest: SerializedSSRManifest, chunk: Readonly<OutputChunk>) {
|
||||
function injectManifest(manifest: SerializedSSRManifest, chunk: Readonly<OutputChunk>) {
|
||||
const code = chunk.code;
|
||||
|
||||
return code.replace(replaceExp, () => {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import type * as vite from 'vite';
|
||||
import type { InlineConfig } from 'vite';
|
||||
import type {
|
||||
AstroConfig,
|
||||
AstroSettings,
|
||||
ComponentInstance,
|
||||
ManifestData,
|
||||
|
@ -14,7 +13,6 @@ import type { Logger } from '../logger/core.js';
|
|||
|
||||
export type ComponentPath = string;
|
||||
export type ViteID = string;
|
||||
export type PageOutput = AstroConfig['output'];
|
||||
|
||||
export type StylesheetAsset =
|
||||
| { type: 'inline'; content: string }
|
||||
|
@ -58,8 +56,3 @@ export interface SinglePageBuiltModule {
|
|||
}
|
||||
|
||||
export type ViteBuildReturn = Awaited<ReturnType<typeof vite.build>>;
|
||||
export type RollupOutput = Extract<
|
||||
Extract<ViteBuildReturn, Exclude<ViteBuildReturn, Array<any>>>,
|
||||
{ output: any }
|
||||
>;
|
||||
export type OutputChunk = Extract<RollupOutput['output'][number], { type: 'chunk' }>;
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
export { compile } from './compile.js';
|
||||
export type { CompileProps, CompileResult } from './compile.js';
|
||||
export type { TransformStyle } from './types.js';
|
||||
|
|
|
@ -1,16 +1,3 @@
|
|||
import type { SourceMap } from 'rollup';
|
||||
|
||||
export type TransformStyleResult = null | {
|
||||
code: string;
|
||||
map: SourceMap | null;
|
||||
deps: Set<string>;
|
||||
};
|
||||
|
||||
export type TransformStyle = (
|
||||
source: string,
|
||||
lang: string
|
||||
) => TransformStyleResult | Promise<TransformStyleResult>;
|
||||
|
||||
export interface CompileCssResult {
|
||||
code: string;
|
||||
/**
|
||||
|
|
|
@ -32,7 +32,7 @@ async function createRestartedContainer(
|
|||
const configRE = /.*astro.config.(?:mjs|cjs|js|ts)$/;
|
||||
const preferencesRE = /.*\.astro\/settings.json$/;
|
||||
|
||||
export function shouldRestartContainer(
|
||||
function shouldRestartContainer(
|
||||
{ settings, inlineConfig, restartInFlight }: Container,
|
||||
changedFile: string
|
||||
): boolean {
|
||||
|
@ -66,7 +66,7 @@ export function shouldRestartContainer(
|
|||
return shouldRestart;
|
||||
}
|
||||
|
||||
export async function restartContainer(container: Container): Promise<Container | Error> {
|
||||
async function restartContainer(container: Container): Promise<Container | Error> {
|
||||
const { logger, close, settings: existingSettings } = container;
|
||||
container.restartInFlight = true;
|
||||
|
||||
|
|
|
@ -190,7 +190,7 @@ export async function getViteErrorPayload(err: ErrorWithMetadata): Promise<Astro
|
|||
* FROM: https://github.com/shikijs/shiki/blob/4a58472070a9a359a4deafec23bb576a73e24c6a/packages/transformers/src/transformers/compact-line-options.ts
|
||||
* LICENSE: https://github.com/shikijs/shiki/blob/4a58472070a9a359a4deafec23bb576a73e24c6a/LICENSE
|
||||
*/
|
||||
export function transformerCompactLineOptions(
|
||||
function transformerCompactLineOptions(
|
||||
lineOptions: {
|
||||
/**
|
||||
* 1-based line number.
|
||||
|
|
|
@ -5,12 +5,6 @@ import { appendForwardSlash } from '../path.js';
|
|||
|
||||
const isWindows = process.platform === 'win32';
|
||||
|
||||
/** An fs utility, similar to `rimraf` or `rm -rf` */
|
||||
export function removeDir(_dir: URL): void {
|
||||
const dir = fileURLToPath(_dir);
|
||||
fs.rmSync(dir, { recursive: true, force: true, maxRetries: 3 });
|
||||
}
|
||||
|
||||
export function removeEmptyDirs(root: URL): void {
|
||||
const dir = fileURLToPath(root);
|
||||
if (!fs.statSync(dir).isDirectory()) return;
|
||||
|
|
|
@ -168,27 +168,6 @@ export function getEventPrefix({ level, label }: LogMessage) {
|
|||
return dim(prefix[0]) + ' ' + blue(prefix.splice(1).join(' '));
|
||||
}
|
||||
|
||||
export let defaultLogLevel: LoggerLevel;
|
||||
if (typeof process !== 'undefined') {
|
||||
// This could be a shimmed environment so we don't know that `process` is the full
|
||||
// NodeJS.process. This code treats it as a plain object so TS doesn't let us
|
||||
// get away with incorrect assumptions.
|
||||
let proc: object = process;
|
||||
if ('argv' in proc && Array.isArray(proc.argv)) {
|
||||
if (proc.argv.includes('--verbose')) {
|
||||
defaultLogLevel = 'debug';
|
||||
} else if (proc.argv.includes('--silent')) {
|
||||
defaultLogLevel = 'silent';
|
||||
} else {
|
||||
defaultLogLevel = 'info';
|
||||
}
|
||||
} else {
|
||||
defaultLogLevel = 'info';
|
||||
}
|
||||
} else {
|
||||
defaultLogLevel = 'info';
|
||||
}
|
||||
|
||||
/** Print out a timer message for debug() */
|
||||
export function timerMessage(message: string, startTime: number = Date.now()) {
|
||||
let timeDiff = Date.now() - startTime;
|
||||
|
|
|
@ -221,7 +221,7 @@ export function cancelled(message: string, tip?: string) {
|
|||
|
||||
const LOCAL_IP_HOSTS = new Set(['localhost', '127.0.0.1']);
|
||||
|
||||
export function getNetworkLogging(host: string | boolean): 'none' | 'host-to-expose' | 'visible' {
|
||||
function getNetworkLogging(host: string | boolean): 'none' | 'host-to-expose' | 'visible' {
|
||||
if (host === false) {
|
||||
return 'host-to-expose';
|
||||
} else if (typeof host === 'string' && LOCAL_IP_HOSTS.has(host)) {
|
||||
|
|
|
@ -74,16 +74,6 @@ export function createModuleScriptElementWithSrc(
|
|||
};
|
||||
}
|
||||
|
||||
export function createModuleScriptElementWithSrcSet(
|
||||
srces: string[],
|
||||
site?: string,
|
||||
assetsPrefix?: AssetsPrefix
|
||||
): Set<SSRElement> {
|
||||
return new Set<SSRElement>(
|
||||
srces.map((src) => createModuleScriptElementWithSrc(src, site, assetsPrefix))
|
||||
);
|
||||
}
|
||||
|
||||
export function createModuleScriptsSet(
|
||||
scripts: { type: 'inline' | 'external'; value: string }[],
|
||||
base?: string,
|
||||
|
|
|
@ -172,20 +172,6 @@ export function isContentCollectionsCacheEnabled(config: AstroConfig): boolean {
|
|||
);
|
||||
}
|
||||
|
||||
export function relativeToSrcDir(config: AstroConfig, idOrUrl: URL | string) {
|
||||
let id: string;
|
||||
if (typeof idOrUrl !== 'string') {
|
||||
id = unwrapId(viteID(idOrUrl));
|
||||
} else {
|
||||
id = idOrUrl;
|
||||
}
|
||||
return id.slice(slash(fileURLToPath(config.srcDir)).length);
|
||||
}
|
||||
|
||||
export function emoji(char: string, fallback: string) {
|
||||
return process.platform !== 'win32' ? char : fallback;
|
||||
}
|
||||
|
||||
export function resolveJsToTs(filePath: string) {
|
||||
if (filePath.endsWith('.jsx') && !fs.existsSync(filePath)) {
|
||||
const tryPath = filePath.slice(0, -4) + '.tsx';
|
||||
|
|
|
@ -131,7 +131,7 @@ export default function createPreferences(config: AstroConfig): AstroPreferences
|
|||
}
|
||||
|
||||
// Adapted from https://github.com/sindresorhus/env-paths
|
||||
export function getGlobalPreferenceDir() {
|
||||
function getGlobalPreferenceDir() {
|
||||
const name = 'astro';
|
||||
const homedir = os.homedir();
|
||||
const macos = () => path.join(homedir, 'Library', 'Preferences', name);
|
||||
|
|
|
@ -643,7 +643,6 @@ function input_implicit_role(attributes: Record<string, string>) {
|
|||
return input_type_to_implicit_role.get(type);
|
||||
}
|
||||
|
||||
/** @param {Map<string, import('#compiler').Attribute>} attribute_map */
|
||||
function menuitem_implicit_role(attributes: Record<string, string>) {
|
||||
if (!('type' in attributes)) return;
|
||||
const { type } = attributes;
|
||||
|
@ -679,13 +678,8 @@ function getAttributeObject(element: Element): Record<string, string> {
|
|||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import('aria-query').ARIARoleDefinitionKey} role
|
||||
* @param {string} tag_name
|
||||
* @param {Map<string, import('#compiler').Attribute>} attribute_map
|
||||
*/
|
||||
function is_semantic_role_element(
|
||||
role: string,
|
||||
role: ARIARoleDefinitionKey,
|
||||
tag_name: string,
|
||||
attributes: Record<string, string>
|
||||
) {
|
||||
|
|
|
@ -4,11 +4,10 @@ import type {
|
|||
SSRLoadedRenderer,
|
||||
SSRResult,
|
||||
} from '../../../@types/astro.js';
|
||||
import { type RenderInstruction, createRenderInstruction } from './instruction.js';
|
||||
import { createRenderInstruction } from './instruction.js';
|
||||
|
||||
import { clsx } from 'clsx';
|
||||
import { AstroError, AstroErrorData } from '../../../core/errors/index.js';
|
||||
import type { HTMLBytes } from '../escape.js';
|
||||
import { markHTMLString } from '../escape.js';
|
||||
import { extractDirectives, generateHydrateScript } from '../hydration.js';
|
||||
import { serializeProps } from '../serialize.js';
|
||||
|
@ -57,8 +56,6 @@ function guessRenderers(componentUrl?: string): string[] {
|
|||
}
|
||||
}
|
||||
|
||||
export type ComponentIterable = AsyncIterable<string | HTMLBytes | RenderInstruction>;
|
||||
|
||||
function isFragmentComponent(Component: unknown) {
|
||||
return Component === Fragment;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ export function createController(params: CreateControllerParams): DevServerContr
|
|||
}
|
||||
}
|
||||
|
||||
export function createBaseController({ reload }: { reload: ReloadFn }): DevServerController {
|
||||
function createBaseController({ reload }: { reload: ReloadFn }): DevServerController {
|
||||
const serverState = createServerState();
|
||||
|
||||
const onFileChange: LoaderEvents['file-change'] = () => {
|
||||
|
@ -58,7 +58,7 @@ export function createBaseController({ reload }: { reload: ReloadFn }): DevServe
|
|||
};
|
||||
}
|
||||
|
||||
export function createLoaderController(loader: ModuleLoader): DevServerController {
|
||||
function createLoaderController(loader: ModuleLoader): DevServerController {
|
||||
const controller = createBaseController({
|
||||
reload() {
|
||||
loader.clientReload();
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
import assert from 'node:assert/strict';
|
||||
import { before, describe, it } from 'node:test';
|
||||
import * as cheerio from 'cheerio';
|
||||
import srcsetParse from 'srcset-parse';
|
||||
import parseSrcset from 'parse-srcset';
|
||||
import { loadFixture } from './test-utils.js';
|
||||
|
||||
// This package isn't real ESM, so have to coerce it
|
||||
const matchSrcset = srcsetParse.default;
|
||||
|
||||
// Asset bundling
|
||||
describe('Assets', () => {
|
||||
let fixture;
|
||||
|
@ -30,8 +27,8 @@ describe('Assets', () => {
|
|||
const html = await fixture.readFile('/index.html');
|
||||
const $ = cheerio.load(html);
|
||||
const srcset = $('img').attr('srcset');
|
||||
const candidates = matchSrcset(srcset);
|
||||
const match = candidates.find((a) => a.density === 2);
|
||||
const candidates = parseSrcset(srcset);
|
||||
const match = candidates.find((a) => a.d === 2);
|
||||
const data = await fixture.readFile(match.url);
|
||||
assert.equal(!!data, true);
|
||||
});
|
||||
|
@ -40,8 +37,8 @@ describe('Assets', () => {
|
|||
const html = await fixture.readFile('/index.html');
|
||||
const $ = cheerio.load(html);
|
||||
const srcset = $('img').attr('srcset');
|
||||
const candidates = matchSrcset(srcset);
|
||||
const match = candidates.find((a) => a.density === 3);
|
||||
const candidates = parseSrcset(srcset);
|
||||
const match = candidates.find((a) => a.d === 3);
|
||||
const data = await fixture.readFile(match.url);
|
||||
assert.equal(!!data, true);
|
||||
});
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Writable } from 'node:stream';
|
|||
import { after, before, describe, it } from 'node:test';
|
||||
import * as cheerio from 'cheerio';
|
||||
import parseSrcset from 'parse-srcset';
|
||||
import { removeDir } from '../dist/core/fs/index.js';
|
||||
import { removeDir } from '@astrojs/internal-helpers/fs';
|
||||
import { Logger } from '../dist/core/logger/core.js';
|
||||
import testAdapter from './test-adapter.js';
|
||||
import { testImageService } from './test-image-service.js';
|
||||
|
|
|
@ -72,7 +72,6 @@
|
|||
"@astrojs/studio": "workspace:*",
|
||||
"@libsql/client": "^0.8.0",
|
||||
"async-listen": "^3.0.1",
|
||||
"ci-info": "^4.0.0",
|
||||
"deep-diff": "^1.0.2",
|
||||
"drizzle-orm": "^0.31.2",
|
||||
"github-slugger": "^2.0.0",
|
||||
|
@ -86,9 +85,7 @@
|
|||
"zod": "^3.23.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4.3.16",
|
||||
"@types/deep-diff": "^1.0.5",
|
||||
"@types/diff": "^5.2.1",
|
||||
"@types/prompts": "^2.4.9",
|
||||
"@types/yargs-parser": "^21.0.3",
|
||||
"astro": "workspace:*",
|
||||
|
|
|
@ -69,15 +69,12 @@
|
|||
"esbuild": "^0.21.5",
|
||||
"github-slugger": "^2.0.0",
|
||||
"gray-matter": "^4.0.3",
|
||||
"htmlparser2": "^9.1.0",
|
||||
"kleur": "^4.1.5",
|
||||
"zod": "^3.23.8"
|
||||
"htmlparser2": "^9.1.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0 || ^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/html-escaper": "^3.0.2",
|
||||
"@types/markdown-it": "^14.1.2",
|
||||
"astro": "workspace:*",
|
||||
"astro-scripts": "workspace:*",
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
"acorn": "^8.12.1",
|
||||
"es-module-lexer": "^1.5.4",
|
||||
"estree-util-visit": "^2.0.0",
|
||||
"github-slugger": "^2.0.0",
|
||||
"gray-matter": "^4.0.3",
|
||||
"hast-util-to-html": "^9.0.1",
|
||||
"kleur": "^4.1.5",
|
||||
|
@ -56,7 +55,6 @@
|
|||
"@types/estree": "^1.0.5",
|
||||
"@types/hast": "^3.0.4",
|
||||
"@types/mdast": "^4.0.4",
|
||||
"@types/yargs-parser": "^21.0.3",
|
||||
"astro": "workspace:*",
|
||||
"astro-scripts": "workspace:*",
|
||||
"cheerio": "1.0.0-rc.12",
|
||||
|
@ -64,7 +62,6 @@
|
|||
"mdast-util-mdx": "^3.0.0",
|
||||
"mdast-util-mdx-jsx": "^3.1.2",
|
||||
"mdast-util-to-string": "^4.0.0",
|
||||
"reading-time": "^1.5.0",
|
||||
"rehype-mathjax": "^6.0.0",
|
||||
"rehype-pretty-code": "^0.13.2",
|
||||
"remark-math": "^6.0.0",
|
||||
|
|
|
@ -57,14 +57,12 @@
|
|||
"@vercel/nft": "^0.27.3",
|
||||
"esbuild": "^0.21.5",
|
||||
"fast-glob": "^3.3.2",
|
||||
"set-cookie-parser": "^2.6.0",
|
||||
"web-vitals": "^3.5.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^4.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/set-cookie-parser": "^2.4.10",
|
||||
"astro": "workspace:*",
|
||||
"astro-scripts": "workspace:*",
|
||||
"cheerio": "1.0.0-rc.12"
|
||||
|
|
215
pnpm-lock.yaml
215
pnpm-lock.yaml
|
@ -4,10 +4,6 @@ settings:
|
|||
autoInstallPeers: false
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
overrides:
|
||||
organize-imports-cli>ts-morph: ^19.0.0
|
||||
tsconfig-resolver>type-fest: 3.0.0
|
||||
|
||||
packageExtensionsChecksum: 43e9b7451c9943c617aef017ec172155
|
||||
|
||||
importers:
|
||||
|
@ -30,9 +26,6 @@ importers:
|
|||
'@changesets/cli':
|
||||
specifier: ^2.27.7
|
||||
version: 2.27.7
|
||||
'@eslint/eslintrc':
|
||||
specifier: ^3.1.0
|
||||
version: 3.1.0
|
||||
'@types/node':
|
||||
specifier: ^18.17.8
|
||||
version: 18.19.31
|
||||
|
@ -54,18 +47,12 @@ importers:
|
|||
only-allow:
|
||||
specifier: ^1.2.1
|
||||
version: 1.2.1
|
||||
organize-imports-cli:
|
||||
specifier: ^0.10.0
|
||||
version: 0.10.0
|
||||
prettier:
|
||||
specifier: ^3.3.3
|
||||
version: 3.3.3
|
||||
prettier-plugin-astro:
|
||||
specifier: ^0.14.1
|
||||
version: 0.14.1
|
||||
tiny-glob:
|
||||
specifier: ^0.2.9
|
||||
version: 0.2.9
|
||||
turbo:
|
||||
specifier: ^1.13.4
|
||||
version: 1.13.4
|
||||
|
@ -615,9 +602,6 @@ importers:
|
|||
boxen:
|
||||
specifier: 7.1.1
|
||||
version: 7.1.1
|
||||
chokidar:
|
||||
specifier: ^3.6.0
|
||||
version: 3.6.0
|
||||
ci-info:
|
||||
specifier: ^4.0.0
|
||||
version: 4.0.0
|
||||
|
@ -776,9 +760,6 @@ importers:
|
|||
'@types/common-ancestor-path':
|
||||
specifier: ^1.0.2
|
||||
version: 1.0.2
|
||||
'@types/connect':
|
||||
specifier: ^3.4.38
|
||||
version: 3.4.38
|
||||
'@types/cssesc':
|
||||
specifier: ^3.0.2
|
||||
version: 3.0.2
|
||||
|
@ -806,21 +787,12 @@ importers:
|
|||
'@types/js-yaml':
|
||||
specifier: ^4.0.9
|
||||
version: 4.0.9
|
||||
'@types/probe-image-size':
|
||||
specifier: ^7.2.5
|
||||
version: 7.2.5
|
||||
'@types/prompts':
|
||||
specifier: ^2.4.9
|
||||
version: 2.4.9
|
||||
'@types/semver':
|
||||
specifier: ^7.5.8
|
||||
version: 7.5.8
|
||||
'@types/send':
|
||||
specifier: ^0.17.4
|
||||
version: 0.17.4
|
||||
'@types/unist':
|
||||
specifier: ^3.0.2
|
||||
version: 3.0.2
|
||||
'@types/yargs-parser':
|
||||
specifier: ^21.0.3
|
||||
version: 21.0.3
|
||||
|
@ -869,9 +841,6 @@ importers:
|
|||
sass:
|
||||
specifier: ^1.77.8
|
||||
version: 1.77.8
|
||||
srcset-parse:
|
||||
specifier: ^1.1.0
|
||||
version: 1.1.0
|
||||
undici:
|
||||
specifier: ^6.19.5
|
||||
version: 6.19.5
|
||||
|
@ -4255,9 +4224,6 @@ importers:
|
|||
async-listen:
|
||||
specifier: ^3.0.1
|
||||
version: 3.0.1
|
||||
ci-info:
|
||||
specifier: ^4.0.0
|
||||
version: 4.0.0
|
||||
deep-diff:
|
||||
specifier: ^1.0.2
|
||||
version: 1.0.2
|
||||
|
@ -4292,15 +4258,9 @@ importers:
|
|||
specifier: ^3.23.8
|
||||
version: 3.23.8
|
||||
devDependencies:
|
||||
'@types/chai':
|
||||
specifier: ^4.3.16
|
||||
version: 4.3.16
|
||||
'@types/deep-diff':
|
||||
specifier: ^1.0.5
|
||||
version: 1.0.5
|
||||
'@types/diff':
|
||||
specifier: ^5.2.1
|
||||
version: 5.2.1
|
||||
'@types/prompts':
|
||||
specifier: ^2.4.9
|
||||
version: 2.4.9
|
||||
|
@ -4574,16 +4534,7 @@ importers:
|
|||
htmlparser2:
|
||||
specifier: ^9.1.0
|
||||
version: 9.1.0
|
||||
kleur:
|
||||
specifier: ^4.1.5
|
||||
version: 4.1.5
|
||||
zod:
|
||||
specifier: ^3.23.8
|
||||
version: 3.23.8
|
||||
devDependencies:
|
||||
'@types/html-escaper':
|
||||
specifier: ^3.0.2
|
||||
version: 3.0.2
|
||||
'@types/markdown-it':
|
||||
specifier: ^14.1.2
|
||||
version: 14.1.2
|
||||
|
@ -4761,9 +4712,6 @@ importers:
|
|||
estree-util-visit:
|
||||
specifier: ^2.0.0
|
||||
version: 2.0.0
|
||||
github-slugger:
|
||||
specifier: ^2.0.0
|
||||
version: 2.0.0
|
||||
gray-matter:
|
||||
specifier: ^4.0.3
|
||||
version: 4.0.3
|
||||
|
@ -4801,9 +4749,6 @@ importers:
|
|||
'@types/mdast':
|
||||
specifier: ^4.0.4
|
||||
version: 4.0.4
|
||||
'@types/yargs-parser':
|
||||
specifier: ^21.0.3
|
||||
version: 21.0.3
|
||||
astro:
|
||||
specifier: workspace:*
|
||||
version: link:../../astro
|
||||
|
@ -4825,9 +4770,6 @@ importers:
|
|||
mdast-util-to-string:
|
||||
specifier: ^4.0.0
|
||||
version: 4.0.0
|
||||
reading-time:
|
||||
specifier: ^1.5.0
|
||||
version: 1.5.0
|
||||
rehype-mathjax:
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
|
@ -5429,16 +5371,10 @@ importers:
|
|||
fast-glob:
|
||||
specifier: ^3.3.2
|
||||
version: 3.3.2
|
||||
set-cookie-parser:
|
||||
specifier: ^2.6.0
|
||||
version: 2.6.0
|
||||
web-vitals:
|
||||
specifier: ^3.5.2
|
||||
version: 3.5.2
|
||||
devDependencies:
|
||||
'@types/set-cookie-parser':
|
||||
specifier: ^2.4.10
|
||||
version: 2.4.10
|
||||
astro:
|
||||
specifier: workspace:*
|
||||
version: link:../../astro
|
||||
|
@ -5988,6 +5924,9 @@ importers:
|
|||
tar:
|
||||
specifier: ^7.4.3
|
||||
version: 7.4.3
|
||||
tiny-glob:
|
||||
specifier: ^0.2.9
|
||||
version: 0.2.9
|
||||
devDependencies:
|
||||
'@octokit/action':
|
||||
specifier: ^7.0.0
|
||||
|
@ -7344,9 +7283,6 @@ packages:
|
|||
resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==}
|
||||
engines: {node: '>=10.13.0'}
|
||||
|
||||
'@ts-morph/common@0.20.0':
|
||||
resolution: {integrity: sha512-7uKjByfbPpwuzkstL3L5MQyuXPSKdoNG93Fmi2JoDcTf3pEP731JdRFAduRVkOs8oqxPsXKA+ScrWkdQ8t/I+Q==}
|
||||
|
||||
'@types/acorn@4.0.6':
|
||||
resolution: {integrity: sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==}
|
||||
|
||||
|
@ -7374,9 +7310,6 @@ packages:
|
|||
'@types/canvas-confetti@1.6.4':
|
||||
resolution: {integrity: sha512-fNyZ/Fdw/Y92X0vv7B+BD6ysHL4xVU5dJcgzgxLdGbn8O3PezZNIJpml44lKM0nsGur+o/6+NZbZeNTt00U1uA==}
|
||||
|
||||
'@types/chai@4.3.16':
|
||||
resolution: {integrity: sha512-PatH4iOdyh3MyWtmHVFXLWCCIhUbopaltqddG9BzB+gMIzee2MJrvd+jouii9Z3wzQJruGWAm7WOMjgfG8hQlQ==}
|
||||
|
||||
'@types/clean-css@4.2.11':
|
||||
resolution: {integrity: sha512-Y8n81lQVTAfP2TOdtJJEsCoYl1AnOkqDqMvXb9/7pfgZZ7r8YrEyurrAvAoAjHOGXKRybay+5CsExqIH6liccw==}
|
||||
|
||||
|
@ -7470,9 +7403,6 @@ packages:
|
|||
'@types/ms@0.7.34':
|
||||
resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==}
|
||||
|
||||
'@types/needle@3.3.0':
|
||||
resolution: {integrity: sha512-UFIuc1gdyzAqeVUYpSL+cliw2MmU/ZUhVZKE7Zo4wPbgc8hbljeKSnn6ls6iG8r5jpegPXLUIhJ+Wb2kLVs8cg==}
|
||||
|
||||
'@types/nlcst@2.0.3':
|
||||
resolution: {integrity: sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA==}
|
||||
|
||||
|
@ -7491,9 +7421,6 @@ packages:
|
|||
'@types/prismjs@1.26.4':
|
||||
resolution: {integrity: sha512-rlAnzkW2sZOjbqZ743IHUhFcvzaGbqijwOu8QZnZCjfQzBqFE3s4lOTJEsxikImav9uzz/42I+O7YUs1mWgMlg==}
|
||||
|
||||
'@types/probe-image-size@7.2.5':
|
||||
resolution: {integrity: sha512-9Bg6d/GNnjmhMMxadDstwrSlquuuLf0jQuPszbU6n3QUfybif3V/ryD3J2i9iaiC5JB/FU/8E41n88SM/UB+Tg==}
|
||||
|
||||
'@types/prompts@2.4.9':
|
||||
resolution: {integrity: sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA==}
|
||||
|
||||
|
@ -7533,15 +7460,6 @@ packages:
|
|||
'@types/server-destroy@1.0.3':
|
||||
resolution: {integrity: sha512-Qq0fn70C7TLDG1W9FCblKufNWW1OckQ41dVKV2Dku5KdZF7bexezG4e2WBaBKhdwL3HZ+cYCEIKwg2BRgzrWmA==}
|
||||
|
||||
'@types/set-cookie-parser@2.4.10':
|
||||
resolution: {integrity: sha512-GGmQVGpQWUe5qglJozEjZV/5dyxbOOZ0LHe/lqyWssB88Y4svNfst0uqBVscdDeIKl5Jy5+aPSvy7mI9tYRguw==}
|
||||
|
||||
'@types/strip-bom@3.0.0':
|
||||
resolution: {integrity: sha512-xevGOReSYGM7g/kUBZzPqCrR/KYAo+F0yiPc85WFTJa0MSLtyFTVTU6cJu/aV4mid7IffDIWqo69THF2o4JiEQ==}
|
||||
|
||||
'@types/strip-json-comments@0.0.30':
|
||||
resolution: {integrity: sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ==}
|
||||
|
||||
'@types/trusted-types@2.0.7':
|
||||
resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==}
|
||||
|
||||
|
@ -8169,9 +8087,6 @@ packages:
|
|||
resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
code-block-writer@12.0.0:
|
||||
resolution: {integrity: sha512-q4dMFMlXtKR3XNBHyMHt/3pwYNA69EDk00lloMOaaUMKPUXBw6lpXtbu3MMVG6/uOihGnRDOlkyqsONEUj60+w==}
|
||||
|
||||
code-red@1.0.4:
|
||||
resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==}
|
||||
|
||||
|
@ -8588,10 +8503,6 @@ packages:
|
|||
eastasianwidth@0.2.0:
|
||||
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
|
||||
|
||||
editorconfig@0.15.3:
|
||||
resolution: {integrity: sha512-M9wIMFx96vq0R4F+gRpY3o2exzb8hEj/n9S8unZtHSvYjibBp/iMufSzvmOcV/laG0ZtuTVGtiJggPOSW2r93g==}
|
||||
hasBin: true
|
||||
|
||||
ee-first@1.1.1:
|
||||
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
|
||||
|
||||
|
@ -9792,10 +9703,6 @@ packages:
|
|||
minimatch@3.1.2:
|
||||
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
|
||||
|
||||
minimatch@7.4.6:
|
||||
resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
minimatch@9.0.4:
|
||||
resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==}
|
||||
engines: {node: '>=16 || 14 >=14.17'}
|
||||
|
@ -9834,11 +9741,6 @@ packages:
|
|||
engines: {node: '>=10'}
|
||||
hasBin: true
|
||||
|
||||
mkdirp@2.1.6:
|
||||
resolution: {integrity: sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==}
|
||||
engines: {node: '>=10'}
|
||||
hasBin: true
|
||||
|
||||
mkdirp@3.0.1:
|
||||
resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==}
|
||||
engines: {node: '>=10'}
|
||||
|
@ -10015,10 +9917,6 @@ packages:
|
|||
resolution: {integrity: sha512-ANIvzobt1rls2BDny5fWZ3ZVKyD6nscLvfFRpQgfWsythlcsVUC9kL0zq6j2Z5z9wwp1kd7wpsD/T9qNPVLCaQ==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
organize-imports-cli@0.10.0:
|
||||
resolution: {integrity: sha512-cVyNEeiDxX/zA6gdK1QS2rr3TK1VymIkT0LagnAk4f6eE0IC0bo3BeUkMzm3q3GnCJzYC+6lfuMpBE0Cequ7Vg==}
|
||||
hasBin: true
|
||||
|
||||
os-tmpdir@1.0.2:
|
||||
resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
@ -10723,10 +10621,6 @@ packages:
|
|||
resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==}
|
||||
engines: {node: '>=4'}
|
||||
|
||||
semver@5.7.2:
|
||||
resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==}
|
||||
hasBin: true
|
||||
|
||||
semver@6.3.1:
|
||||
resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
|
||||
hasBin: true
|
||||
|
@ -10763,9 +10657,6 @@ packages:
|
|||
set-blocking@2.0.0:
|
||||
resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
|
||||
|
||||
set-cookie-parser@2.6.0:
|
||||
resolution: {integrity: sha512-RVnVQxTXuerk653XfuliOxBP81Sf0+qfQE73LIYKcyMYHG94AuH0kgrQpRDuTZnSmjpysHmzxJXKNfa6PjFhyQ==}
|
||||
|
||||
set-function-length@1.2.2:
|
||||
resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
@ -10811,9 +10702,6 @@ packages:
|
|||
siginfo@2.0.0:
|
||||
resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}
|
||||
|
||||
sigmund@1.0.1:
|
||||
resolution: {integrity: sha512-fCvEXfh6NWpm+YSuY2bpXb/VIihqWA6hLsgboC+0nl71Q7N7o2eaCW8mJa/NLvQhs6jpd3VZV4UiUQlV6+lc8g==}
|
||||
|
||||
signal-exit@3.0.7:
|
||||
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
|
||||
|
||||
|
@ -10900,9 +10788,6 @@ packages:
|
|||
sprintf-js@1.0.3:
|
||||
resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}
|
||||
|
||||
srcset-parse@1.1.0:
|
||||
resolution: {integrity: sha512-JWp4cG2eybkvKA1QUHGoNK6JDEYcOnSuhzNGjZuYUPqXreDl/VkkvP2sZW7Rmh+icuCttrR9ccb2WPIazyM/Cw==}
|
||||
|
||||
stack-trace@1.0.0-pre2:
|
||||
resolution: {integrity: sha512-2ztBJRek8IVofG9DBJqdy2N5kulaacX30Nz7xmkYF6ale9WBVmIy6mFBchvGX7Vx/MyjBhx+Rcxqrj+dbOnQ6A==}
|
||||
engines: {node: '>=16'}
|
||||
|
@ -10966,10 +10851,6 @@ packages:
|
|||
resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
strip-json-comments@2.0.1:
|
||||
resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
strip-json-comments@3.1.1:
|
||||
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
|
||||
engines: {node: '>=8'}
|
||||
|
@ -11160,9 +11041,6 @@ packages:
|
|||
ts-interface-checker@0.1.13:
|
||||
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
|
||||
|
||||
ts-morph@19.0.0:
|
||||
resolution: {integrity: sha512-D6qcpiJdn46tUqV45vr5UGM2dnIEuTGNxVhg0sk5NX11orcouwj6i1bMqZIz2mZTZB1Hcgy7C3oEVhAT+f6mbQ==}
|
||||
|
||||
tsconfck@3.1.1:
|
||||
resolution: {integrity: sha512-00eoI6WY57SvZEVjm13stEVE90VkEdJAFGgpFLTsZbJyW/LwFQ7uQxJHWpZ2hzSWgCPKc9AnBnNP+0X7o3hAmQ==}
|
||||
engines: {node: ^18 || >=20}
|
||||
|
@ -11176,9 +11054,6 @@ packages:
|
|||
tsconfig-resolver@3.0.1:
|
||||
resolution: {integrity: sha512-ZHqlstlQF449v8glscGRXzL6l2dZvASPCdXJRWG4gHEZlUVx2Jtmr+a2zeVG4LCsKhDXKRj5R3h0C/98UcVAQg==}
|
||||
|
||||
tsconfig@7.0.0:
|
||||
resolution: {integrity: sha512-vZXmzPrL+EmC4T/4rVlT2jNVMWCi/O4DIiSj3UHg1OE5kCKbk4mfrXc6dZksLgRM/TZlKnousKH9bbTazUWRRw==}
|
||||
|
||||
tslib@2.1.0:
|
||||
resolution: {integrity: sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==}
|
||||
|
||||
|
@ -11223,6 +11098,10 @@ packages:
|
|||
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
|
||||
engines: {node: '>= 0.8.0'}
|
||||
|
||||
type-fest@0.13.1:
|
||||
resolution: {integrity: sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
type-fest@1.4.0:
|
||||
resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==}
|
||||
engines: {node: '>=10'}
|
||||
|
@ -11231,10 +11110,6 @@ packages:
|
|||
resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}
|
||||
engines: {node: '>=12.20'}
|
||||
|
||||
type-fest@3.0.0:
|
||||
resolution: {integrity: sha512-MINvUN5ug9u+0hJDzSZNSnuKXI8M4F5Yvb6SQZ2CYqe7SgKXKOosEcU5R7tRgo85I6eAVBbkVF7TCvB4AUK2xQ==}
|
||||
engines: {node: '>=14.16'}
|
||||
|
||||
type-is@1.6.18:
|
||||
resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==}
|
||||
engines: {node: '>= 0.6'}
|
||||
|
@ -13253,13 +13128,6 @@ snapshots:
|
|||
|
||||
'@trysound/sax@0.2.0': {}
|
||||
|
||||
'@ts-morph/common@0.20.0':
|
||||
dependencies:
|
||||
fast-glob: 3.3.2
|
||||
minimatch: 7.4.6
|
||||
mkdirp: 2.1.6
|
||||
path-browserify: 1.0.1
|
||||
|
||||
'@types/acorn@4.0.6':
|
||||
dependencies:
|
||||
'@types/estree': 1.0.5
|
||||
|
@ -13296,8 +13164,6 @@ snapshots:
|
|||
|
||||
'@types/canvas-confetti@1.6.4': {}
|
||||
|
||||
'@types/chai@4.3.16': {}
|
||||
|
||||
'@types/clean-css@4.2.11':
|
||||
dependencies:
|
||||
'@types/node': 18.19.31
|
||||
|
@ -13394,10 +13260,6 @@ snapshots:
|
|||
|
||||
'@types/ms@0.7.34': {}
|
||||
|
||||
'@types/needle@3.3.0':
|
||||
dependencies:
|
||||
'@types/node': 18.19.31
|
||||
|
||||
'@types/nlcst@2.0.3':
|
||||
dependencies:
|
||||
'@types/unist': 3.0.2
|
||||
|
@ -13414,11 +13276,6 @@ snapshots:
|
|||
|
||||
'@types/prismjs@1.26.4': {}
|
||||
|
||||
'@types/probe-image-size@7.2.5':
|
||||
dependencies:
|
||||
'@types/needle': 3.3.0
|
||||
'@types/node': 18.19.31
|
||||
|
||||
'@types/prompts@2.4.9':
|
||||
dependencies:
|
||||
'@types/node': 18.19.31
|
||||
|
@ -13464,14 +13321,6 @@ snapshots:
|
|||
dependencies:
|
||||
'@types/node': 18.19.31
|
||||
|
||||
'@types/set-cookie-parser@2.4.10':
|
||||
dependencies:
|
||||
'@types/node': 18.19.31
|
||||
|
||||
'@types/strip-bom@3.0.0': {}
|
||||
|
||||
'@types/strip-json-comments@0.0.30': {}
|
||||
|
||||
'@types/trusted-types@2.0.7': {}
|
||||
|
||||
'@types/uglify-js@3.17.5':
|
||||
|
@ -14273,8 +14122,6 @@ snapshots:
|
|||
|
||||
clsx@2.1.1: {}
|
||||
|
||||
code-block-writer@12.0.0: {}
|
||||
|
||||
code-red@1.0.4:
|
||||
dependencies:
|
||||
'@jridgewell/sourcemap-codec': 1.5.0
|
||||
|
@ -14552,13 +14399,6 @@ snapshots:
|
|||
|
||||
eastasianwidth@0.2.0: {}
|
||||
|
||||
editorconfig@0.15.3:
|
||||
dependencies:
|
||||
commander: 2.20.3
|
||||
lru-cache: 4.1.5
|
||||
semver: 5.7.2
|
||||
sigmund: 1.0.1
|
||||
|
||||
ee-first@1.1.1: {}
|
||||
|
||||
electron-to-chromium@1.4.815: {}
|
||||
|
@ -16245,10 +16085,6 @@ snapshots:
|
|||
dependencies:
|
||||
brace-expansion: 1.1.11
|
||||
|
||||
minimatch@7.4.6:
|
||||
dependencies:
|
||||
brace-expansion: 2.0.1
|
||||
|
||||
minimatch@9.0.4:
|
||||
dependencies:
|
||||
brace-expansion: 2.0.1
|
||||
|
@ -16279,8 +16115,6 @@ snapshots:
|
|||
|
||||
mkdirp@1.0.4: {}
|
||||
|
||||
mkdirp@2.1.6: {}
|
||||
|
||||
mkdirp@3.0.1: {}
|
||||
|
||||
mri@1.2.0: {}
|
||||
|
@ -16455,13 +16289,6 @@ snapshots:
|
|||
string-width: 7.2.0
|
||||
strip-ansi: 7.1.0
|
||||
|
||||
organize-imports-cli@0.10.0:
|
||||
dependencies:
|
||||
chalk: 4.1.2
|
||||
editorconfig: 0.15.3
|
||||
ts-morph: 19.0.0
|
||||
tsconfig: 7.0.0
|
||||
|
||||
os-tmpdir@1.0.2: {}
|
||||
|
||||
outdent@0.5.0: {}
|
||||
|
@ -17283,8 +17110,6 @@ snapshots:
|
|||
extend-shallow: 2.0.1
|
||||
kind-of: 6.0.3
|
||||
|
||||
semver@5.7.2: {}
|
||||
|
||||
semver@6.3.1: {}
|
||||
|
||||
semver@7.6.3: {}
|
||||
|
@ -17328,8 +17153,6 @@ snapshots:
|
|||
|
||||
set-blocking@2.0.0: {}
|
||||
|
||||
set-cookie-parser@2.6.0: {}
|
||||
|
||||
set-function-length@1.2.2:
|
||||
dependencies:
|
||||
define-data-property: 1.1.4
|
||||
|
@ -17409,8 +17232,6 @@ snapshots:
|
|||
|
||||
siginfo@2.0.0: {}
|
||||
|
||||
sigmund@1.0.1: {}
|
||||
|
||||
signal-exit@3.0.7: {}
|
||||
|
||||
signal-exit@4.1.0: {}
|
||||
|
@ -17494,8 +17315,6 @@ snapshots:
|
|||
|
||||
sprintf-js@1.0.3: {}
|
||||
|
||||
srcset-parse@1.1.0: {}
|
||||
|
||||
stack-trace@1.0.0-pre2: {}
|
||||
|
||||
stackback@0.0.2: {}
|
||||
|
@ -17551,8 +17370,6 @@ snapshots:
|
|||
|
||||
strip-final-newline@3.0.0: {}
|
||||
|
||||
strip-json-comments@2.0.1: {}
|
||||
|
||||
strip-json-comments@3.1.1: {}
|
||||
|
||||
strip-json-comments@5.0.1: {}
|
||||
|
@ -17770,11 +17587,6 @@ snapshots:
|
|||
|
||||
ts-interface-checker@0.1.13: {}
|
||||
|
||||
ts-morph@19.0.0:
|
||||
dependencies:
|
||||
'@ts-morph/common': 0.20.0
|
||||
code-block-writer: 12.0.0
|
||||
|
||||
tsconfck@3.1.1(typescript@5.5.4):
|
||||
optionalDependencies:
|
||||
typescript: 5.5.4
|
||||
|
@ -17786,14 +17598,7 @@ snapshots:
|
|||
json5: 2.2.3
|
||||
resolve: 1.22.8
|
||||
strip-bom: 4.0.0
|
||||
type-fest: 3.0.0
|
||||
|
||||
tsconfig@7.0.0:
|
||||
dependencies:
|
||||
'@types/strip-bom': 3.0.0
|
||||
'@types/strip-json-comments': 0.0.30
|
||||
strip-bom: 3.0.0
|
||||
strip-json-comments: 2.0.1
|
||||
type-fest: 0.13.1
|
||||
|
||||
tslib@2.1.0: {}
|
||||
|
||||
|
@ -17830,12 +17635,12 @@ snapshots:
|
|||
dependencies:
|
||||
prelude-ls: 1.2.1
|
||||
|
||||
type-fest@0.13.1: {}
|
||||
|
||||
type-fest@1.4.0: {}
|
||||
|
||||
type-fest@2.19.0: {}
|
||||
|
||||
type-fest@3.0.0: {}
|
||||
|
||||
type-is@1.6.18:
|
||||
dependencies:
|
||||
media-typer: 0.3.0
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
"kleur": "^4.1.5",
|
||||
"p-limit": "^6.1.0",
|
||||
"svelte": "^4.2.18",
|
||||
"tar": "^7.4.3"
|
||||
"tar": "^7.4.3",
|
||||
"tiny-glob": "^0.2.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@octokit/action": "^7.0.0",
|
||||
|
|
Loading…
Reference in a new issue