From e79c7967b95eaf0f8637cc59a21a5bd8aa91d970 Mon Sep 17 00:00:00 2001 From: Aidan Bleser Date: Wed, 19 Mar 2025 10:15:06 -0500 Subject: [PATCH 1/4] ts-blank-space issues --- packages/cli/package.json | 3 +- packages/cli/src/commands/add.ts | 13 ++++--- packages/cli/src/commands/update.ts | 2 +- packages/cli/src/utils/registry/index.ts | 13 ++----- packages/cli/src/utils/transformers.ts | 36 +++++++++++++++++++ .../cli/test/utils/registry/index.spec.ts | 16 ++------- sites/docs/scripts/build-registry.ts | 24 ++----------- 7 files changed, 56 insertions(+), 51 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index d3868e5ab5..ca50d014f9 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -46,7 +46,8 @@ "execa": "^7.2.0", "is-unicode-supported": "^2.0.0", "node-fetch-native": "^1.6.4", - "semver": "^7.7.1" + "semver": "^7.7.1", + "sv-strip": "^0.0.7" }, "devDependencies": { "@types/node": "^18.19.22", diff --git a/packages/cli/src/commands/add.ts b/packages/cli/src/commands/add.ts index 474ff6399c..17be830f99 100644 --- a/packages/cli/src/commands/add.ts +++ b/packages/cli/src/commands/add.ts @@ -12,7 +12,7 @@ import { getEnvProxy, getEnvRegistry } from "../utils/get-env-proxy.js"; import { cancel, intro, prettifyList } from "../utils/prompt-helpers.js"; import * as p from "../utils/prompts.js"; import * as registry from "../utils/registry/index.js"; -import { transformImports } from "../utils/transformers.js"; +import { transformContent } from "../utils/transformers.js"; import { resolveCommand } from "package-manager-detector/commands"; import { checkPreconditions } from "../utils/preconditions.js"; @@ -162,7 +162,7 @@ async function runAdd(cwd: string, config: cliConfig.Config, options: AddOptions config, }); - const payload = await registry.fetchTree(config, tree); + const payload = await registry.fetchTree(tree); // const baseColor = await getRegistryBaseColor(config.tailwind.baseColor); if (payload.length === 0) cancel("Selected components not found."); @@ -265,16 +265,21 @@ async function runAdd(cwd: string, config: cliConfig.Config, options: AddOptions let pageName: string | undefined; for (const file of item.files) { const targetDir = registry.getRegistryItemTargetPath(config, file.type); - const filePath = path.resolve(targetDir, file.target); + let filePath = path.resolve(targetDir, file.target); // Run transformers. - const content = transformImports(file.content, config); + const content = await transformContent(file.content, filePath, config); const dir = path.parse(filePath).dir; if (!existsSync(dir)) { await fs.mkdir(dir, { recursive: true }); } + if (!config.typescript && filePath.endsWith('.ts')) { + filePath = filePath.replaceAll('.ts', '.js'); + file.target = file.target.replaceAll('.ts', '.js'); + } + await fs.writeFile(filePath, content); if (file.type === "registry:page") { pageName = file.target; diff --git a/packages/cli/src/commands/update.ts b/packages/cli/src/commands/update.ts index 2f938ca3db..7571c9eb53 100644 --- a/packages/cli/src/commands/update.ts +++ b/packages/cli/src/commands/update.ts @@ -183,7 +183,7 @@ async function runUpdate(cwd: string, config: cliConfig.Config, options: UpdateO names: selectedComponents.map((com) => com.name), config, }); - const payload = (await registry.fetchTree(config, tree)).sort((a, b) => + const payload = (await registry.fetchTree(tree)).sort((a, b) => a.name.localeCompare(b.name) ); diff --git a/packages/cli/src/utils/registry/index.ts b/packages/cli/src/utils/registry/index.ts index c55dba5dbb..0199992533 100644 --- a/packages/cli/src/utils/registry/index.ts +++ b/packages/cli/src/utils/registry/index.ts @@ -83,8 +83,7 @@ export async function resolveTree({ let entry = index.find((entry) => entry.name === name); if (!entry) { - const itemPath = getRegistryItemPath(name, config); - const [item] = await fetchRegistry([itemPath]); + const [item] = await fetchRegistry([`${name}.json`]); if (item) entry = item; if (!entry) continue; } @@ -106,9 +105,9 @@ export async function resolveTree({ ); } -export async function fetchTree(config: Config, tree: RegistryIndex) { +export async function fetchTree(tree: RegistryIndex) { try { - const paths = tree.map((item) => getRegistryItemPath(item.name, config)); + const paths = tree.map((item) => `${item.name}.json`); const result = await fetchRegistry(paths); return v.parse(schemas.registryWithContentSchema, result); @@ -118,12 +117,6 @@ export async function fetchTree(config: Config, tree: RegistryIndex) { } } -export function getRegistryItemPath(name: string, config: Config) { - const lang = config.typescript ? "ts" : "js"; - - return `${lang}/${name}.json`; -} - export function getItemTargetPath( config: Config, item: v.InferOutput, diff --git a/packages/cli/src/utils/transformers.ts b/packages/cli/src/utils/transformers.ts index e730561e1b..24be56c4d8 100644 --- a/packages/cli/src/utils/transformers.ts +++ b/packages/cli/src/utils/transformers.ts @@ -1,4 +1,25 @@ import type { Config } from "./get-config.js"; +import * as prettier from "prettier"; +import tsBlankSpace from "ts-blank-space"; +import prettierPluginSvelte from "prettier-plugin-svelte"; +import { strip } from "sv-strip"; + +const prettierConfig: prettier.Config = { + useTabs: true, + singleQuote: false, + trailingComma: "es5", + printWidth: 100, +}; + +export async function transformContent(content: string, filename: string, config: Config) { + content = transformImports(content, config); + + if (!config.typescript) { + content = await stripTypes(content, filename); + } + + return content; +} export function transformImports(content: string, config: Config) { let str = content.replace(/\$lib\/registry\/.*\/components/g, config.aliases.components); @@ -7,3 +28,18 @@ export function transformImports(content: string, config: Config) { str = str.replace(/\$lib\/utils/g, config.aliases.utils); return str; } + +export async function stripTypes(content: string, filename: string) { + if (filename.endsWith(".svelte")) { + content = strip(content, { filename }); + } else { + content = tsBlankSpace(content); + } + + return await prettier.format(content, { + ...prettierConfig, + filepath: filename, + plugins: [prettierPluginSvelte], + overrides: [{ files: "*.svelte", options: { parser: "svelte" } }], + }); +} diff --git a/packages/cli/test/utils/registry/index.spec.ts b/packages/cli/test/utils/registry/index.spec.ts index 35a13b274d..5dc86d48bf 100644 --- a/packages/cli/test/utils/registry/index.spec.ts +++ b/packages/cli/test/utils/registry/index.spec.ts @@ -1,6 +1,6 @@ import path from "node:path"; import { describe, expect, it } from "vitest"; -import { getItemTargetPath, getRegistryItemPath } from "../../../src/utils/registry/index"; +import { getItemTargetPath } from "../../../src/utils/registry/index"; import { SITE_BASE_URL } from "../../../src/constants"; const config = { @@ -91,16 +91,4 @@ describe("getItemTargetPath", () => { }) ).toEqual(path.join("src", "lib", "components", "ui")); }); -}); - -describe("getRegistryItemPath", () => { - it("Resolves path to ts when typescript", async () => { - expect(getRegistryItemPath("alert", config)).toBe("ts/alert.json"); - }); - - it("Resolves path to js when javascript", () => { - expect(getRegistryItemPath("alert", { ...config, typescript: false })).toBe( - "js/alert.json" - ); - }); -}); +}); \ No newline at end of file diff --git a/sites/docs/scripts/build-registry.ts b/sites/docs/scripts/build-registry.ts index c30269608a..d7d54e3335 100644 --- a/sites/docs/scripts/build-registry.ts +++ b/sites/docs/scripts/build-registry.ts @@ -151,17 +151,10 @@ export const Index = { // ---------------------------------------------------------------------------- // Create the registry directory const targetPath = path.join(REGISTRY_PATH); - const targetTsPath = `${targetPath}/ts`; - const targetJsPath = `${targetPath}/js`; // Create directory if it doesn't exist. - if (!fs.existsSync(targetTsPath)) { - fs.mkdirSync(targetTsPath, { recursive: true }); - } - - // Create JS directory if it doesn't exist. - if (!fs.existsSync(targetJsPath)) { - fs.mkdirSync(targetJsPath, { recursive: true }); + if (!fs.existsSync(targetPath)) { + fs.mkdirSync(targetPath, { recursive: true }); } for (const item of result.data) { @@ -196,22 +189,11 @@ export const Index = { files, }; - const jsPayload = { - ...item, - files: jsFiles, - }; - writeFileWithDirs( - path.join(targetTsPath, `${item.name}.json`), + path.join(targetPath, `${item.name}.json`), JSON.stringify(payload, null, "\t"), "utf-8" ); - - writeFileWithDirs( - path.join(targetJsPath, `${item.name}.json`), - JSON.stringify(jsPayload, null, "\t"), - "utf-8" - ); } // ---------------------------------------------------------------------------- From bd47da607a1dbe551ee43161d328887be101187e Mon Sep 17 00:00:00 2001 From: Aidan Bleser Date: Wed, 19 Mar 2025 10:52:37 -0500 Subject: [PATCH 2/4] fix blank space --- packages/cli/package.json | 5 +- pnpm-lock.yaml | 908 +++----------------------------------- 2 files changed, 76 insertions(+), 837 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index ca50d014f9..60bdcfe0f1 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -46,8 +46,11 @@ "execa": "^7.2.0", "is-unicode-supported": "^2.0.0", "node-fetch-native": "^1.6.4", + "prettier": "^3.5.3", + "prettier-plugin-svelte": "^3.3.3", "semver": "^7.7.1", - "sv-strip": "^0.0.7" + "sv-strip": "^0.0.7", + "ts-blank-space": "^0.6.1" }, "devDependencies": { "@types/node": "^18.19.22", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c54e2adb84..40019d9a41 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,51 +60,6 @@ importers: specifier: ^8.26.1 version: 8.26.1(eslint@9.22.0(jiti@2.4.2))(typescript@5.8.2) - bower_components: - devDependencies: - '@sveltejs/adapter-auto': - specifier: ^4.0.0 - version: 4.0.0(@sveltejs/kit@2.20.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)))(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2))) - '@sveltejs/kit': - specifier: ^2.16.0 - version: 2.20.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)))(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)) - '@sveltejs/vite-plugin-svelte': - specifier: ^5.0.0 - version: 5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)) - '@tailwindcss/vite': - specifier: ^4.0.0 - version: 4.0.14(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)) - bits-ui: - specifier: ^1.3.12 - version: 1.3.12(svelte@5.23.1) - clsx: - specifier: ^2.1.1 - version: 2.1.1 - svelte: - specifier: ^5.0.0 - version: 5.23.1 - svelte-check: - specifier: ^4.0.0 - version: 4.1.1(picomatch@4.0.2)(svelte@5.23.1)(typescript@5.8.2) - tailwind-merge: - specifier: ^2.4.0 - version: 2.6.0 - tailwind-variants: - specifier: ^0.2.1 - version: 0.2.1(tailwindcss@4.0.14) - tailwindcss: - specifier: ^4.0.0 - version: 4.0.14 - tw-animate-css: - specifier: ^1.2.3 - version: 1.2.3 - typescript: - specifier: ^5.0.0 - version: 5.8.2 - vite: - specifier: ^6.0.0 - version: 6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2) - packages/cli: dependencies: '@clack/core': @@ -125,9 +80,21 @@ importers: node-fetch-native: specifier: ^1.6.4 version: 1.6.4 + prettier: + specifier: ^3.5.3 + version: 3.5.3 + prettier-plugin-svelte: + specifier: ^3.3.3 + version: 3.3.3(prettier@3.5.3)(svelte@5.23.2) semver: specifier: ^7.7.1 version: 7.7.1 + sv-strip: + specifier: ^0.0.7 + version: 0.0.7 + ts-blank-space: + specifier: ^0.6.1 + version: 0.6.1 devDependencies: '@types/node': specifier: ^18.19.22 @@ -573,12 +540,6 @@ packages: cpu: [ppc64] os: [aix] - '@esbuild/aix-ppc64@0.25.1': - resolution: {integrity: sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - '@esbuild/android-arm64@0.17.19': resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==} engines: {node: '>=12'} @@ -603,12 +564,6 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm64@0.25.1': - resolution: {integrity: sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - '@esbuild/android-arm@0.17.19': resolution: {integrity: sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==} engines: {node: '>=12'} @@ -633,12 +588,6 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-arm@0.25.1': - resolution: {integrity: sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - '@esbuild/android-x64@0.17.19': resolution: {integrity: sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==} engines: {node: '>=12'} @@ -663,12 +612,6 @@ packages: cpu: [x64] os: [android] - '@esbuild/android-x64@0.25.1': - resolution: {integrity: sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - '@esbuild/darwin-arm64@0.17.19': resolution: {integrity: sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==} engines: {node: '>=12'} @@ -693,12 +636,6 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-arm64@0.25.1': - resolution: {integrity: sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - '@esbuild/darwin-x64@0.17.19': resolution: {integrity: sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==} engines: {node: '>=12'} @@ -723,12 +660,6 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/darwin-x64@0.25.1': - resolution: {integrity: sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - '@esbuild/freebsd-arm64@0.17.19': resolution: {integrity: sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==} engines: {node: '>=12'} @@ -753,12 +684,6 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-arm64@0.25.1': - resolution: {integrity: sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - '@esbuild/freebsd-x64@0.17.19': resolution: {integrity: sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==} engines: {node: '>=12'} @@ -783,12 +708,6 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/freebsd-x64@0.25.1': - resolution: {integrity: sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - '@esbuild/linux-arm64@0.17.19': resolution: {integrity: sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==} engines: {node: '>=12'} @@ -813,12 +732,6 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm64@0.25.1': - resolution: {integrity: sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - '@esbuild/linux-arm@0.17.19': resolution: {integrity: sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==} engines: {node: '>=12'} @@ -843,12 +756,6 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-arm@0.25.1': - resolution: {integrity: sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - '@esbuild/linux-ia32@0.17.19': resolution: {integrity: sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==} engines: {node: '>=12'} @@ -873,12 +780,6 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-ia32@0.25.1': - resolution: {integrity: sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - '@esbuild/linux-loong64@0.17.19': resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==} engines: {node: '>=12'} @@ -903,12 +804,6 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-loong64@0.25.1': - resolution: {integrity: sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - '@esbuild/linux-mips64el@0.17.19': resolution: {integrity: sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==} engines: {node: '>=12'} @@ -933,12 +828,6 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-mips64el@0.25.1': - resolution: {integrity: sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - '@esbuild/linux-ppc64@0.17.19': resolution: {integrity: sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==} engines: {node: '>=12'} @@ -963,12 +852,6 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-ppc64@0.25.1': - resolution: {integrity: sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - '@esbuild/linux-riscv64@0.17.19': resolution: {integrity: sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==} engines: {node: '>=12'} @@ -993,12 +876,6 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-riscv64@0.25.1': - resolution: {integrity: sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - '@esbuild/linux-s390x@0.17.19': resolution: {integrity: sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==} engines: {node: '>=12'} @@ -1023,12 +900,6 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-s390x@0.25.1': - resolution: {integrity: sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - '@esbuild/linux-x64@0.17.19': resolution: {integrity: sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==} engines: {node: '>=12'} @@ -1053,18 +924,6 @@ packages: cpu: [x64] os: [linux] - '@esbuild/linux-x64@0.25.1': - resolution: {integrity: sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - - '@esbuild/netbsd-arm64@0.25.1': - resolution: {integrity: sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==} - engines: {node: '>=18'} - cpu: [arm64] - os: [netbsd] - '@esbuild/netbsd-x64@0.17.19': resolution: {integrity: sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==} engines: {node: '>=12'} @@ -1089,24 +948,12 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/netbsd-x64@0.25.1': - resolution: {integrity: sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - '@esbuild/openbsd-arm64@0.24.0': resolution: {integrity: sha512-MD9uzzkPQbYehwcN583yx3Tu5M8EIoTD+tUgKF982WYL9Pf5rKy9ltgD0eUgs8pvKnmizxjXZyLt0z6DC3rRXg==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-arm64@0.25.1': - resolution: {integrity: sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - '@esbuild/openbsd-x64@0.17.19': resolution: {integrity: sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==} engines: {node: '>=12'} @@ -1131,12 +978,6 @@ packages: cpu: [x64] os: [openbsd] - '@esbuild/openbsd-x64@0.25.1': - resolution: {integrity: sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - '@esbuild/sunos-x64@0.17.19': resolution: {integrity: sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==} engines: {node: '>=12'} @@ -1161,12 +1002,6 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/sunos-x64@0.25.1': - resolution: {integrity: sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - '@esbuild/win32-arm64@0.17.19': resolution: {integrity: sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==} engines: {node: '>=12'} @@ -1191,12 +1026,6 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-arm64@0.25.1': - resolution: {integrity: sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] - '@esbuild/win32-ia32@0.17.19': resolution: {integrity: sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==} engines: {node: '>=12'} @@ -1221,12 +1050,6 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-ia32@0.25.1': - resolution: {integrity: sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==} - engines: {node: '>=18'} - cpu: [ia32] - os: [win32] - '@esbuild/win32-x64@0.17.19': resolution: {integrity: sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==} engines: {node: '>=12'} @@ -1251,12 +1074,6 @@ packages: cpu: [x64] os: [win32] - '@esbuild/win32-x64@0.25.1': - resolution: {integrity: sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==} - engines: {node: '>=18'} - cpu: [x64] - os: [win32] - '@eslint-community/eslint-utils@4.5.1': resolution: {integrity: sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -1572,176 +1389,81 @@ packages: cpu: [arm] os: [android] - '@rollup/rollup-android-arm-eabi@4.36.0': - resolution: {integrity: sha512-jgrXjjcEwN6XpZXL0HUeOVGfjXhPyxAbbhD0BlXUB+abTOpbPiN5Wb3kOT7yb+uEtATNYF5x5gIfwutmuBA26w==} - cpu: [arm] - os: [android] - '@rollup/rollup-android-arm64@4.24.0': resolution: {integrity: sha512-ijLnS1qFId8xhKjT81uBHuuJp2lU4x2yxa4ctFPtG+MqEE6+C5f/+X/bStmxapgmwLwiL3ih122xv8kVARNAZA==} cpu: [arm64] os: [android] - '@rollup/rollup-android-arm64@4.36.0': - resolution: {integrity: sha512-NyfuLvdPdNUfUNeYKUwPwKsE5SXa2J6bCt2LdB/N+AxShnkpiczi3tcLJrm5mA+eqpy0HmaIY9F6XCa32N5yzg==} - cpu: [arm64] - os: [android] - '@rollup/rollup-darwin-arm64@4.24.0': resolution: {integrity: sha512-bIv+X9xeSs1XCk6DVvkO+S/z8/2AMt/2lMqdQbMrmVpgFvXlmde9mLcbQpztXm1tajC3raFDqegsH18HQPMYtA==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-arm64@4.36.0': - resolution: {integrity: sha512-JQ1Jk5G4bGrD4pWJQzWsD8I1n1mgPXq33+/vP4sk8j/z/C2siRuxZtaUA7yMTf71TCZTZl/4e1bfzwUmFb3+rw==} - cpu: [arm64] - os: [darwin] - '@rollup/rollup-darwin-x64@4.24.0': resolution: {integrity: sha512-X6/nOwoFN7RT2svEQWUsW/5C/fYMBe4fnLK9DQk4SX4mgVBiTA9h64kjUYPvGQ0F/9xwJ5U5UfTbl6BEjaQdBQ==} cpu: [x64] os: [darwin] - '@rollup/rollup-darwin-x64@4.36.0': - resolution: {integrity: sha512-6c6wMZa1lrtiRsbDziCmjE53YbTkxMYhhnWnSW8R/yqsM7a6mSJ3uAVT0t8Y/DGt7gxUWYuFM4bwWk9XCJrFKA==} - cpu: [x64] - os: [darwin] - - '@rollup/rollup-freebsd-arm64@4.36.0': - resolution: {integrity: sha512-KXVsijKeJXOl8QzXTsA+sHVDsFOmMCdBRgFmBb+mfEb/7geR7+C8ypAml4fquUt14ZyVXaw2o1FWhqAfOvA4sg==} - cpu: [arm64] - os: [freebsd] - - '@rollup/rollup-freebsd-x64@4.36.0': - resolution: {integrity: sha512-dVeWq1ebbvByI+ndz4IJcD4a09RJgRYmLccwlQ8bPd4olz3Y213uf1iwvc7ZaxNn2ab7bjc08PrtBgMu6nb4pQ==} - cpu: [x64] - os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.24.0': resolution: {integrity: sha512-0KXvIJQMOImLCVCz9uvvdPgfyWo93aHHp8ui3FrtOP57svqrF/roSSR5pjqL2hcMp0ljeGlU4q9o/rQaAQ3AYA==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-gnueabihf@4.36.0': - resolution: {integrity: sha512-bvXVU42mOVcF4le6XSjscdXjqx8okv4n5vmwgzcmtvFdifQ5U4dXFYaCB87namDRKlUL9ybVtLQ9ztnawaSzvg==} - cpu: [arm] - os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.24.0': resolution: {integrity: sha512-it2BW6kKFVh8xk/BnHfakEeoLPv8STIISekpoF+nBgWM4d55CZKc7T4Dx1pEbTnYm/xEKMgy1MNtYuoA8RFIWw==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.36.0': - resolution: {integrity: sha512-JFIQrDJYrxOnyDQGYkqnNBtjDwTgbasdbUiQvcU8JmGDfValfH1lNpng+4FWlhaVIR4KPkeddYjsVVbmJYvDcg==} - cpu: [arm] - os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.24.0': resolution: {integrity: sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.36.0': - resolution: {integrity: sha512-KqjYVh3oM1bj//5X7k79PSCZ6CvaVzb7Qs7VMWS+SlWB5M8p3FqufLP9VNp4CazJ0CsPDLwVD9r3vX7Ci4J56A==} - cpu: [arm64] - os: [linux] - '@rollup/rollup-linux-arm64-musl@4.24.0': resolution: {integrity: sha512-9E6MKUJhDuDh604Qco5yP/3qn3y7SLXYuiC0Rpr89aMScS2UAmK1wHP2b7KAa1nSjWJc/f/Lc0Wl1L47qjiyQw==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.36.0': - resolution: {integrity: sha512-QiGnhScND+mAAtfHqeT+cB1S9yFnNQ/EwCg5yE3MzoaZZnIV0RV9O5alJAoJKX/sBONVKeZdMfO8QSaWEygMhw==} - cpu: [arm64] - os: [linux] - - '@rollup/rollup-linux-loongarch64-gnu@4.36.0': - resolution: {integrity: sha512-1ZPyEDWF8phd4FQtTzMh8FQwqzvIjLsl6/84gzUxnMNFBtExBtpL51H67mV9xipuxl1AEAerRBgBwFNpkw8+Lg==} - cpu: [loong64] - os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.24.0': resolution: {integrity: sha512-2XFFPJ2XMEiF5Zi2EBf4h73oR1V/lycirxZxHZNc93SqDN/IWhYYSYj8I9381ikUFXZrz2v7r2tOVk2NBwxrWw==} cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.36.0': - resolution: {integrity: sha512-VMPMEIUpPFKpPI9GZMhJrtu8rxnp6mJR3ZzQPykq4xc2GmdHj3Q4cA+7avMyegXy4n1v+Qynr9fR88BmyO74tg==} - cpu: [ppc64] - os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.24.0': resolution: {integrity: sha512-M3Dg4hlwuntUCdzU7KjYqbbd+BLq3JMAOhCKdBE3TcMGMZbKkDdJ5ivNdehOssMCIokNHFOsv7DO4rlEOfyKpg==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.36.0': - resolution: {integrity: sha512-ttE6ayb/kHwNRJGYLpuAvB7SMtOeQnVXEIpMtAvx3kepFQeowVED0n1K9nAdraHUPJ5hydEMxBpIR7o4nrm8uA==} - cpu: [riscv64] - os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.24.0': resolution: {integrity: sha512-mjBaoo4ocxJppTorZVKWFpy1bfFj9FeCMJqzlMQGjpNPY9JwQi7OuS1axzNIk0nMX6jSgy6ZURDZ2w0QW6D56g==} cpu: [s390x] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.36.0': - resolution: {integrity: sha512-4a5gf2jpS0AIe7uBjxDeUMNcFmaRTbNv7NxI5xOCs4lhzsVyGR/0qBXduPnoWf6dGC365saTiwag8hP1imTgag==} - cpu: [s390x] - os: [linux] - '@rollup/rollup-linux-x64-gnu@4.24.0': resolution: {integrity: sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.36.0': - resolution: {integrity: sha512-5KtoW8UWmwFKQ96aQL3LlRXX16IMwyzMq/jSSVIIyAANiE1doaQsx/KRyhAvpHlPjPiSU/AYX/8m+lQ9VToxFQ==} - cpu: [x64] - os: [linux] - '@rollup/rollup-linux-x64-musl@4.24.0': resolution: {integrity: sha512-w1i+L7kAXZNdYl+vFvzSZy8Y1arS7vMgIy8wusXJzRrPyof5LAb02KGr1PD2EkRcl73kHulIID0M501lN+vobQ==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.36.0': - resolution: {integrity: sha512-sycrYZPrv2ag4OCvaN5js+f01eoZ2U+RmT5as8vhxiFz+kxwlHrsxOwKPSA8WyS+Wc6Epid9QeI/IkQ9NkgYyQ==} - cpu: [x64] - os: [linux] - '@rollup/rollup-win32-arm64-msvc@4.24.0': resolution: {integrity: sha512-VXBrnPWgBpVDCVY6XF3LEW0pOU51KbaHhccHw6AS6vBWIC60eqsH19DAeeObl+g8nKAz04QFdl/Cefta0xQtUQ==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-arm64-msvc@4.36.0': - resolution: {integrity: sha512-qbqt4N7tokFwwSVlWDsjfoHgviS3n/vZ8LK0h1uLG9TYIRuUTJC88E1xb3LM2iqZ/WTqNQjYrtmtGmrmmawB6A==} - cpu: [arm64] - os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.24.0': resolution: {integrity: sha512-xrNcGDU0OxVcPTH/8n/ShH4UevZxKIO6HJFK0e15XItZP2UcaiLFd5kiX7hJnqCbSztUF8Qot+JWBC/QXRPYWQ==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.36.0': - resolution: {integrity: sha512-t+RY0JuRamIocMuQcfwYSOkmdX9dtkr1PbhKW42AMvaDQa+jOdpUYysroTF/nuPpAaQMWp7ye+ndlmmthieJrQ==} - cpu: [ia32] - os: [win32] - '@rollup/rollup-win32-x64-msvc@4.24.0': resolution: {integrity: sha512-fbMkAF7fufku0N2dE5TBXcNlg0pt0cJue4xBRE2Qc5Vqikxr4VCgKj/ht6SMdFcOacVA9rqF70APJ8RN/4vMJw==} cpu: [x64] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.36.0': - resolution: {integrity: sha512-aRXd7tRZkWLqGbChgcMMDEHjOKudo1kChb1Jt1IfR8cY/KIpgNviLeJy5FUb9IpSuQj8dU2fAYNMPW/hLKOSTw==} - cpu: [x64] - os: [win32] - '@shikijs/core@1.2.1': resolution: {integrity: sha512-KaIS0H4EQ3KI2d++TjYqRNgwp8E3M/68e9veR4QtInzA7kKFgcjeiJqb80fuXW+blDy5fmd11PN9g9soz/3ANQ==} @@ -1765,11 +1487,6 @@ packages: peerDependencies: acorn: ^8.9.0 - '@sveltejs/adapter-auto@4.0.0': - resolution: {integrity: sha512-kmuYSQdD2AwThymQF0haQhM8rE5rhutQXG4LNbnbShwhMO4qQGnKaaTy+88DuNSuoQDi58+thpq8XpHc1+oEKQ==} - peerDependencies: - '@sveltejs/kit': ^2.0.0 - '@sveltejs/adapter-cloudflare@4.6.1': resolution: {integrity: sha512-wENN4un6VC7kWLXyIcPX1VPpjyTxGEenEcaLsLCci0fuLZRT0Gsx+g0eV1k1IA+NznKkxd06XxfcqY2xhYDu/A==} peerDependencies: @@ -1785,15 +1502,6 @@ packages: svelte: ^4.0.0 || ^5.0.0-next.0 vite: ^5.0.3 || ^6.0.0 - '@sveltejs/kit@2.20.1': - resolution: {integrity: sha512-XXd6hQKi9le+8rYIKsxTfgABjB3b8S21qZmMUTvAC5kuVA1AXvYPVEmxrMhRqyOacXu3e6P3ag5HtJi6j9K7UQ==} - engines: {node: '>=18.13'} - hasBin: true - peerDependencies: - '@sveltejs/vite-plugin-svelte': ^3.0.0 || ^4.0.0-next.1 || ^5.0.0 - svelte: ^4.0.0 || ^5.0.0-next.0 - vite: ^5.0.3 || ^6.0.0 - '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.3': resolution: {integrity: sha512-kuGJ2CZ5lAw3gKF8Kw0AfKtUJWbwdlDHY14K413B0MCyrzvQvsKTorwmwZcky0+QqY6RnVIZ/5FttB9bQmkLXg==} engines: {node: ^18.0.0 || ^20.0.0 || >=22} @@ -1802,14 +1510,6 @@ packages: svelte: ^5.0.0-next.96 || ^5.0.0 vite: ^5.0.0 - '@sveltejs/vite-plugin-svelte-inspector@4.0.1': - resolution: {integrity: sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22} - peerDependencies: - '@sveltejs/vite-plugin-svelte': ^5.0.0 - svelte: ^5.0.0 - vite: ^6.0.0 - '@sveltejs/vite-plugin-svelte@4.0.0': resolution: {integrity: sha512-kpVJwF+gNiMEsoHaw+FJL76IYiwBikkxYU83+BpqQLdVMff19KeRKLd2wisS8niNBMJ2omv5gG+iGDDwd8jzag==} engines: {node: ^18.0.0 || ^20.0.0 || >=22} @@ -1817,94 +1517,9 @@ packages: svelte: ^5.0.0-next.96 || ^5.0.0 vite: ^5.0.0 - '@sveltejs/vite-plugin-svelte@5.0.3': - resolution: {integrity: sha512-MCFS6CrQDu1yGwspm4qtli0e63vaPCehf6V7pIMP15AsWgMKrqDGCPFF/0kn4SP0ii4aySu4Pa62+fIRGFMjgw==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22} - peerDependencies: - svelte: ^5.0.0 - vite: ^6.0.0 - '@swc/helpers@0.5.6': resolution: {integrity: sha512-aYX01Ke9hunpoCexYAgQucEpARGQ5w/cqHFrIR+e9gdKb1QWTsVJuTJ2ozQzIAxLyRQe/m+2RqzkyOOGiMKRQA==} - '@tailwindcss/node@4.0.14': - resolution: {integrity: sha512-Ux9NbFkKWYE4rfUFz6M5JFLs/GEYP6ysxT8uSyPn6aTbh2K3xDE1zz++eVK4Vwx799fzMF8CID9sdHn4j/Ab8w==} - - '@tailwindcss/oxide-android-arm64@4.0.14': - resolution: {integrity: sha512-VBFKC2rFyfJ5J8lRwjy6ub3rgpY186kAcYgiUr8ArR8BAZzMruyeKJ6mlsD22Zp5ZLcPW/FXMasJiJBx0WsdQg==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [android] - - '@tailwindcss/oxide-darwin-arm64@4.0.14': - resolution: {integrity: sha512-U3XOwLrefGr2YQZ9DXasDSNWGPZBCh8F62+AExBEDMLDfvLLgI/HDzY8Oq8p/JtqkAY38sWPOaNnRwEGKU5Zmg==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [darwin] - - '@tailwindcss/oxide-darwin-x64@4.0.14': - resolution: {integrity: sha512-V5AjFuc3ndWGnOi1d379UsODb0TzAS2DYIP/lwEbfvafUaD2aNZIcbwJtYu2DQqO2+s/XBvDVA+w4yUyaewRwg==} - engines: {node: '>= 10'} - cpu: [x64] - os: [darwin] - - '@tailwindcss/oxide-freebsd-x64@4.0.14': - resolution: {integrity: sha512-tXvtxbaZfcPfqBwW3f53lTcyH6EDT+1eT7yabwcfcxTs+8yTPqxsDUhrqe9MrnEzpNkd+R/QAjJapfd4tjWdLg==} - engines: {node: '>= 10'} - cpu: [x64] - os: [freebsd] - - '@tailwindcss/oxide-linux-arm-gnueabihf@4.0.14': - resolution: {integrity: sha512-cSeLNWWqIWeSTmBntQvyY2/2gcLX8rkPFfDDTQVF8qbRcRMVPLxBvFVJyfSAYRNch6ZyVH2GI6dtgALOBDpdNA==} - engines: {node: '>= 10'} - cpu: [arm] - os: [linux] - - '@tailwindcss/oxide-linux-arm64-gnu@4.0.14': - resolution: {integrity: sha512-bwDWLBalXFMDItcSXzFk6y7QKvj6oFlaY9vM+agTlwFL1n1OhDHYLZkSjaYsh6KCeG0VB0r7H8PUJVOM1LRZyg==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - - '@tailwindcss/oxide-linux-arm64-musl@4.0.14': - resolution: {integrity: sha512-gVkJdnR/L6iIcGYXx64HGJRmlme2FGr/aZH0W6u4A3RgPMAb+6ELRLi+UBiH83RXBm9vwCfkIC/q8T51h8vUJQ==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - - '@tailwindcss/oxide-linux-x64-gnu@4.0.14': - resolution: {integrity: sha512-EE+EQ+c6tTpzsg+LGO1uuusjXxYx0Q00JE5ubcIGfsogSKth8n8i2BcS2wYTQe4jXGs+BQs35l78BIPzgwLddw==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - - '@tailwindcss/oxide-linux-x64-musl@4.0.14': - resolution: {integrity: sha512-KCCOzo+L6XPT0oUp2Jwh233ETRQ/F6cwUnMnR0FvMUCbkDAzHbcyOgpfuAtRa5HD0WbTbH4pVD+S0pn1EhNfbw==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - - '@tailwindcss/oxide-win32-arm64-msvc@4.0.14': - resolution: {integrity: sha512-AHObFiFL9lNYcm3tZSPqa/cHGpM5wOrNmM2uOMoKppp+0Hom5uuyRh0QkOp7jftsHZdrZUpmoz0Mp6vhh2XtUg==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [win32] - - '@tailwindcss/oxide-win32-x64-msvc@4.0.14': - resolution: {integrity: sha512-rNXXMDJfCJLw/ZaFTOLOHoGULxyXfh2iXTGiChFiYTSgKBKQHIGEpV0yn5N25WGzJJ+VBnRjHzlmDqRV+d//oQ==} - engines: {node: '>= 10'} - cpu: [x64] - os: [win32] - - '@tailwindcss/oxide@4.0.14': - resolution: {integrity: sha512-M8VCNyO/NBi5vJ2cRcI9u8w7Si+i76a7o1vveoGtbbjpEYJZYiyc7f2VGps/DqawO56l3tImIbq2OT/533jcrA==} - engines: {node: '>= 10'} - - '@tailwindcss/vite@4.0.14': - resolution: {integrity: sha512-y69ztPTRFy+13EPS/7dEFVl7q2Goh1pQueVO8IfGeyqSpcx/joNJXFk0lLhMgUbF0VFJotwRSb9ZY7Xoq3r26Q==} - peerDependencies: - vite: ^5.2.0 || ^6 - '@tanstack/table-core@8.20.5': resolution: {integrity: sha512-P9dF7XbibHph2PFRz8gfBKEXEY/HJPOhym8CHmjF8y3q5mWpKx9xtZapXQUWCgkqvsK0R46Azuz+VaxD4Xl+Tg==} engines: {node: '>=12'} @@ -2938,10 +2553,6 @@ packages: end-of-stream@1.4.4: resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} - enhanced-resolve@5.18.1: - resolution: {integrity: sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==} - engines: {node: '>=10.13.0'} - enquirer@2.4.1: resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} engines: {node: '>=8.6'} @@ -2983,11 +2594,6 @@ packages: engines: {node: '>=18'} hasBin: true - esbuild@0.25.1: - resolution: {integrity: sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==} - engines: {node: '>=18'} - hasBin: true - escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} @@ -4200,6 +3806,9 @@ packages: pathe@1.1.2: resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + pathval@1.1.1: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} @@ -4596,11 +4205,6 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true - rollup@4.36.0: - resolution: {integrity: sha512-zwATAXNQxUcd40zgtQG0ZafcRK4g004WtEl7kbuhTWPvf07PsfohXl39jVUvPF7jvNAIkKPQ2XrsDlWuxBd++Q==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -4825,6 +4429,9 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} + sv-strip@0.0.7: + resolution: {integrity: sha512-qlTabVoPAOeigzBwGrsgblBNS3fSxHi4lO/EIHBNmSFUkoTwXw2yv/Pb0NROWlX4uoUHb24Awd86V6usQi7wMg==} + svelte-check@4.1.1: resolution: {integrity: sha512-NfaX+6Qtc8W/CyVGS/F7/XdiSSyXz+WGYA9ZWV3z8tso14V2vzjfXviKaTFEzB7g8TqfgO2FOzP6XT4ApSTUTw==} engines: {node: '>= 18.0.0'} @@ -4879,6 +4486,10 @@ packages: resolution: {integrity: sha512-DUu3e5tQDO+PtKffjqJ548YfeKtw2Rqc9/+nlP26DZ0AopWTJNylkNnTOP/wcgIt1JSnovyISxEZ/lDR1OhbOw==} engines: {node: '>=18'} + svelte@5.23.2: + resolution: {integrity: sha512-PHP1o0aYJNMatiZ+0nq1W/Z1W1/l5Z94B9nhMIo7gsuTBbxC454g4O5SQMjQpZBUZi5ANYUrXJOE4gPzcN/VQw==} + engines: {node: '>=18'} + sveltekit-superforms@2.19.1: resolution: {integrity: sha512-P3R3S8o+0UGHtVqmisb13aFVuIyTCsFdxh/2C/fvoR9/JKeBrhzJ/chI7GdByoXE5fr2DtanocGXmP3PRTcpvw==} peerDependencies: @@ -4907,13 +4518,6 @@ packages: engines: {node: '>=14.0.0'} hasBin: true - tailwindcss@4.0.14: - resolution: {integrity: sha512-92YT2dpt671tFiHH/e1ok9D987N9fHD5VWoly1CdPD/Cd1HMglvZwP3nx2yTj2lbXDAHt8QssZkxTLCCTNL+xw==} - - tapable@2.2.1: - resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} - engines: {node: '>=6'} - tar-fs@3.0.6: resolution: {integrity: sha512-iokBDQQkUyeXhgPYaZxmczGPhnhXZ0CmrqI+MOb/WFGS9DW5wnfrLgtjUJBvz50vQ3qfRwJ62QVoCFu8mPVu5w==} @@ -5045,6 +4649,10 @@ packages: resolution: {integrity: sha512-G6GkD6oEJ7j5gG2e5qAizfE4Ap7JXMpnN0CEp9FEt4LExdaqsdwB90aQsaAwcKhiSxVk5KoqFW9xfxTQ4lBUnQ==} engines: {node: '>=18.0.0'} + ts-blank-space@0.6.1: + resolution: {integrity: sha512-LcM3W5HEyzTaXUeQITV8ploUOGe+zuuoFYsCfPscFLhx3bZn2sSfHMKxsULVG/zA7an9UhReiHv4Kk/6QzlpXQ==} + engines: {node: '>=18.0.0'} + ts-deepmerge@7.0.1: resolution: {integrity: sha512-JBFCmNenZdUCc+TRNCtXVM6N8y/nDQHAcpj5BlwXG/gnogjam1NunulB9ia68mnqYI446giMfpqeBFFkOleh+g==} engines: {node: '>=14.13.1'} @@ -5085,9 +4693,6 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - tw-animate-css@1.2.3: - resolution: {integrity: sha512-G2p4jSSGH21vb/slt1iCAqPL2XmFM2/9LT/I8Z2XHUcHbLGaN7YPx3tg8PkU0QAVgG9hzkAGh0cTrCwFjbZrkg==} - type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -5252,62 +4857,26 @@ packages: hasBin: true vite-node@2.1.3: - resolution: {integrity: sha512-I1JadzO+xYX887S39Do+paRePCKoiDrWRRjp9kkG5he0t7RXNvPAJPCQSJqbGN4uCrFFeS3Kj3sLqY8NMYBEdA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - - vite@5.4.9: - resolution: {integrity: sha512-20OVpJHh0PAM0oSOELa5GaZNWeDjcAvQjGXy2Uyr+Tp+/D2/Hdz6NLgpJLsarPTA2QJ6v8mX2P1ZfbsSKvdMkg==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 - less: '*' - lightningcss: ^1.21.0 - sass: '*' - sass-embedded: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true + resolution: {integrity: sha512-I1JadzO+xYX887S39Do+paRePCKoiDrWRRjp9kkG5he0t7RXNvPAJPCQSJqbGN4uCrFFeS3Kj3sLqY8NMYBEdA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true - vite@6.2.2: - resolution: {integrity: sha512-yW7PeMM+LkDzc7CgJuRLMW2Jz0FxMOsVJ8Lv3gpgW9WLcb9cTW+121UEr1hvmfR7w3SegR5ItvYyzVz1vxNJgQ==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + vite@5.4.9: + resolution: {integrity: sha512-20OVpJHh0PAM0oSOELa5GaZNWeDjcAvQjGXy2Uyr+Tp+/D2/Hdz6NLgpJLsarPTA2QJ6v8mX2P1ZfbsSKvdMkg==} + engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: - '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 - jiti: '>=1.21.0' + '@types/node': ^18.0.0 || >=20.0.0 less: '*' lightningcss: ^1.21.0 sass: '*' sass-embedded: '*' stylus: '*' sugarss: '*' - terser: ^5.16.0 - tsx: ^4.8.1 - yaml: ^2.4.2 + terser: ^5.4.0 peerDependenciesMeta: '@types/node': optional: true - jiti: - optional: true less: optional: true lightningcss: @@ -5322,10 +4891,6 @@ packages: optional: true terser: optional: true - tsx: - optional: true - yaml: - optional: true vitefu@1.0.3: resolution: {integrity: sha512-iKKfOMBHob2WxEJbqbJjHAkmYgvFDPhuqrO82om83S8RLk+17FtyMBfcyeH8GqD0ihShtkMW/zzJgiA51hCNCQ==} @@ -5335,14 +4900,6 @@ packages: vite: optional: true - vitefu@1.0.6: - resolution: {integrity: sha512-+Rex1GlappUyNN6UfwbVZne/9cYC4+R2XDk9xkNXBKMw6HQagdX9PgZ8V2v1WUSK1wfBLp7qbI1+XSNIlB1xmA==} - peerDependencies: - vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 - peerDependenciesMeta: - vite: - optional: true - vitest@0.34.6: resolution: {integrity: sha512-+5CALsOvbNKnS+ZHMXtuUC7nL8/7F1F2DnHGjSsszX8zCjWSSviphCb/NuS9Nzf4Q03KyyDRBAXhF/8lffME4Q==} engines: {node: '>=v14.18.0'} @@ -5821,9 +5378,6 @@ snapshots: '@esbuild/aix-ppc64@0.24.0': optional: true - '@esbuild/aix-ppc64@0.25.1': - optional: true - '@esbuild/android-arm64@0.17.19': optional: true @@ -5836,9 +5390,6 @@ snapshots: '@esbuild/android-arm64@0.24.0': optional: true - '@esbuild/android-arm64@0.25.1': - optional: true - '@esbuild/android-arm@0.17.19': optional: true @@ -5851,9 +5402,6 @@ snapshots: '@esbuild/android-arm@0.24.0': optional: true - '@esbuild/android-arm@0.25.1': - optional: true - '@esbuild/android-x64@0.17.19': optional: true @@ -5866,9 +5414,6 @@ snapshots: '@esbuild/android-x64@0.24.0': optional: true - '@esbuild/android-x64@0.25.1': - optional: true - '@esbuild/darwin-arm64@0.17.19': optional: true @@ -5881,9 +5426,6 @@ snapshots: '@esbuild/darwin-arm64@0.24.0': optional: true - '@esbuild/darwin-arm64@0.25.1': - optional: true - '@esbuild/darwin-x64@0.17.19': optional: true @@ -5896,9 +5438,6 @@ snapshots: '@esbuild/darwin-x64@0.24.0': optional: true - '@esbuild/darwin-x64@0.25.1': - optional: true - '@esbuild/freebsd-arm64@0.17.19': optional: true @@ -5911,9 +5450,6 @@ snapshots: '@esbuild/freebsd-arm64@0.24.0': optional: true - '@esbuild/freebsd-arm64@0.25.1': - optional: true - '@esbuild/freebsd-x64@0.17.19': optional: true @@ -5926,9 +5462,6 @@ snapshots: '@esbuild/freebsd-x64@0.24.0': optional: true - '@esbuild/freebsd-x64@0.25.1': - optional: true - '@esbuild/linux-arm64@0.17.19': optional: true @@ -5941,9 +5474,6 @@ snapshots: '@esbuild/linux-arm64@0.24.0': optional: true - '@esbuild/linux-arm64@0.25.1': - optional: true - '@esbuild/linux-arm@0.17.19': optional: true @@ -5956,9 +5486,6 @@ snapshots: '@esbuild/linux-arm@0.24.0': optional: true - '@esbuild/linux-arm@0.25.1': - optional: true - '@esbuild/linux-ia32@0.17.19': optional: true @@ -5971,9 +5498,6 @@ snapshots: '@esbuild/linux-ia32@0.24.0': optional: true - '@esbuild/linux-ia32@0.25.1': - optional: true - '@esbuild/linux-loong64@0.17.19': optional: true @@ -5986,9 +5510,6 @@ snapshots: '@esbuild/linux-loong64@0.24.0': optional: true - '@esbuild/linux-loong64@0.25.1': - optional: true - '@esbuild/linux-mips64el@0.17.19': optional: true @@ -6001,9 +5522,6 @@ snapshots: '@esbuild/linux-mips64el@0.24.0': optional: true - '@esbuild/linux-mips64el@0.25.1': - optional: true - '@esbuild/linux-ppc64@0.17.19': optional: true @@ -6016,9 +5534,6 @@ snapshots: '@esbuild/linux-ppc64@0.24.0': optional: true - '@esbuild/linux-ppc64@0.25.1': - optional: true - '@esbuild/linux-riscv64@0.17.19': optional: true @@ -6031,9 +5546,6 @@ snapshots: '@esbuild/linux-riscv64@0.24.0': optional: true - '@esbuild/linux-riscv64@0.25.1': - optional: true - '@esbuild/linux-s390x@0.17.19': optional: true @@ -6046,9 +5558,6 @@ snapshots: '@esbuild/linux-s390x@0.24.0': optional: true - '@esbuild/linux-s390x@0.25.1': - optional: true - '@esbuild/linux-x64@0.17.19': optional: true @@ -6061,12 +5570,6 @@ snapshots: '@esbuild/linux-x64@0.24.0': optional: true - '@esbuild/linux-x64@0.25.1': - optional: true - - '@esbuild/netbsd-arm64@0.25.1': - optional: true - '@esbuild/netbsd-x64@0.17.19': optional: true @@ -6079,15 +5582,9 @@ snapshots: '@esbuild/netbsd-x64@0.24.0': optional: true - '@esbuild/netbsd-x64@0.25.1': - optional: true - '@esbuild/openbsd-arm64@0.24.0': optional: true - '@esbuild/openbsd-arm64@0.25.1': - optional: true - '@esbuild/openbsd-x64@0.17.19': optional: true @@ -6100,9 +5597,6 @@ snapshots: '@esbuild/openbsd-x64@0.24.0': optional: true - '@esbuild/openbsd-x64@0.25.1': - optional: true - '@esbuild/sunos-x64@0.17.19': optional: true @@ -6115,9 +5609,6 @@ snapshots: '@esbuild/sunos-x64@0.24.0': optional: true - '@esbuild/sunos-x64@0.25.1': - optional: true - '@esbuild/win32-arm64@0.17.19': optional: true @@ -6130,9 +5621,6 @@ snapshots: '@esbuild/win32-arm64@0.24.0': optional: true - '@esbuild/win32-arm64@0.25.1': - optional: true - '@esbuild/win32-ia32@0.17.19': optional: true @@ -6145,9 +5633,6 @@ snapshots: '@esbuild/win32-ia32@0.24.0': optional: true - '@esbuild/win32-ia32@0.25.1': - optional: true - '@esbuild/win32-x64@0.17.19': optional: true @@ -6160,9 +5645,6 @@ snapshots: '@esbuild/win32-x64@0.24.0': optional: true - '@esbuild/win32-x64@0.25.1': - optional: true - '@eslint-community/eslint-utils@4.5.1(eslint@9.22.0(jiti@2.4.2))': dependencies: eslint: 9.22.0(jiti@2.4.2) @@ -6487,108 +5969,51 @@ snapshots: '@rollup/rollup-android-arm-eabi@4.24.0': optional: true - '@rollup/rollup-android-arm-eabi@4.36.0': - optional: true - '@rollup/rollup-android-arm64@4.24.0': optional: true - '@rollup/rollup-android-arm64@4.36.0': - optional: true - '@rollup/rollup-darwin-arm64@4.24.0': optional: true - '@rollup/rollup-darwin-arm64@4.36.0': - optional: true - '@rollup/rollup-darwin-x64@4.24.0': optional: true - '@rollup/rollup-darwin-x64@4.36.0': - optional: true - - '@rollup/rollup-freebsd-arm64@4.36.0': - optional: true - - '@rollup/rollup-freebsd-x64@4.36.0': - optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.24.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.36.0': - optional: true - '@rollup/rollup-linux-arm-musleabihf@4.24.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.36.0': - optional: true - '@rollup/rollup-linux-arm64-gnu@4.24.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.36.0': - optional: true - '@rollup/rollup-linux-arm64-musl@4.24.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.36.0': - optional: true - - '@rollup/rollup-linux-loongarch64-gnu@4.36.0': - optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.24.0': optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.36.0': - optional: true - '@rollup/rollup-linux-riscv64-gnu@4.24.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.36.0': - optional: true - '@rollup/rollup-linux-s390x-gnu@4.24.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.36.0': - optional: true - '@rollup/rollup-linux-x64-gnu@4.24.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.36.0': - optional: true - '@rollup/rollup-linux-x64-musl@4.24.0': optional: true - '@rollup/rollup-linux-x64-musl@4.36.0': - optional: true - '@rollup/rollup-win32-arm64-msvc@4.24.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.36.0': - optional: true - '@rollup/rollup-win32-ia32-msvc@4.24.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.36.0': - optional: true - '@rollup/rollup-win32-x64-msvc@4.24.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.36.0': - optional: true - '@shikijs/core@1.2.1': {} '@sideway/address@4.1.5': @@ -6611,11 +6036,6 @@ snapshots: dependencies: acorn: 8.14.1 - '@sveltejs/adapter-auto@4.0.0(@sveltejs/kit@2.20.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)))(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)))': - dependencies: - '@sveltejs/kit': 2.20.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)))(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)) - import-meta-resolve: 4.1.0 - '@sveltejs/adapter-cloudflare@4.6.1(@sveltejs/kit@2.15.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)))(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)))(wrangler@3.81.0)': dependencies: '@cloudflare/workers-types': 4.20240222.0 @@ -6642,23 +6062,6 @@ snapshots: tiny-glob: 0.2.9 vite: 5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0) - '@sveltejs/kit@2.20.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)))(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2))': - dependencies: - '@sveltejs/vite-plugin-svelte': 5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)) - '@types/cookie': 0.6.0 - cookie: 0.6.0 - devalue: 5.1.1 - esm-env: 1.2.2 - import-meta-resolve: 4.1.0 - kleur: 4.1.5 - magic-string: 0.30.12 - mrmime: 2.0.0 - sade: 1.8.1 - set-cookie-parser: 2.6.0 - sirv: 3.0.0 - svelte: 5.23.1 - vite: 6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2) - '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)))(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0))': dependencies: '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)) @@ -6668,15 +6071,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)))(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2))': - dependencies: - '@sveltejs/vite-plugin-svelte': 5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)) - debug: 4.4.0 - svelte: 5.23.1 - vite: 6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2) - transitivePeerDependencies: - - supports-color - '@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0))': dependencies: '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)))(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)) @@ -6690,84 +6084,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2))': - dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)))(svelte@5.23.1)(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)) - debug: 4.4.0 - deepmerge: 4.3.1 - kleur: 4.1.5 - magic-string: 0.30.17 - svelte: 5.23.1 - vite: 6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2) - vitefu: 1.0.6(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)) - transitivePeerDependencies: - - supports-color - '@swc/helpers@0.5.6': dependencies: tslib: 2.8.1 - '@tailwindcss/node@4.0.14': - dependencies: - enhanced-resolve: 5.18.1 - jiti: 2.4.2 - tailwindcss: 4.0.14 - - '@tailwindcss/oxide-android-arm64@4.0.14': - optional: true - - '@tailwindcss/oxide-darwin-arm64@4.0.14': - optional: true - - '@tailwindcss/oxide-darwin-x64@4.0.14': - optional: true - - '@tailwindcss/oxide-freebsd-x64@4.0.14': - optional: true - - '@tailwindcss/oxide-linux-arm-gnueabihf@4.0.14': - optional: true - - '@tailwindcss/oxide-linux-arm64-gnu@4.0.14': - optional: true - - '@tailwindcss/oxide-linux-arm64-musl@4.0.14': - optional: true - - '@tailwindcss/oxide-linux-x64-gnu@4.0.14': - optional: true - - '@tailwindcss/oxide-linux-x64-musl@4.0.14': - optional: true - - '@tailwindcss/oxide-win32-arm64-msvc@4.0.14': - optional: true - - '@tailwindcss/oxide-win32-x64-msvc@4.0.14': - optional: true - - '@tailwindcss/oxide@4.0.14': - optionalDependencies: - '@tailwindcss/oxide-android-arm64': 4.0.14 - '@tailwindcss/oxide-darwin-arm64': 4.0.14 - '@tailwindcss/oxide-darwin-x64': 4.0.14 - '@tailwindcss/oxide-freebsd-x64': 4.0.14 - '@tailwindcss/oxide-linux-arm-gnueabihf': 4.0.14 - '@tailwindcss/oxide-linux-arm64-gnu': 4.0.14 - '@tailwindcss/oxide-linux-arm64-musl': 4.0.14 - '@tailwindcss/oxide-linux-x64-gnu': 4.0.14 - '@tailwindcss/oxide-linux-x64-musl': 4.0.14 - '@tailwindcss/oxide-win32-arm64-msvc': 4.0.14 - '@tailwindcss/oxide-win32-x64-msvc': 4.0.14 - - '@tailwindcss/vite@4.0.14(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2))': - dependencies: - '@tailwindcss/node': 4.0.14 - '@tailwindcss/oxide': 4.0.14 - lightningcss: 1.29.2 - tailwindcss: 4.0.14 - vite: 6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2) - '@tanstack/table-core@8.20.5': {} '@tootallnate/quickjs-emscripten@0.23.0': {} @@ -7409,17 +6729,6 @@ snapshots: svelte-toolbelt: 0.7.1(svelte@5.16.1) tabbable: 6.2.0 - bits-ui@1.3.12(svelte@5.23.1): - dependencies: - '@floating-ui/core': 1.6.4 - '@floating-ui/dom': 1.6.7 - '@internationalized/date': 3.5.6 - esm-env: 1.2.1 - runed: 0.23.3(svelte@5.23.1) - svelte: 5.23.1 - svelte-toolbelt: 0.7.1(svelte@5.23.1) - tabbable: 6.2.0 - blake3-wasm@2.1.5: {} brace-expansion@1.1.11: @@ -7932,11 +7241,6 @@ snapshots: dependencies: once: 1.4.0 - enhanced-resolve@5.18.1: - dependencies: - graceful-fs: 4.2.11 - tapable: 2.2.1 - enquirer@2.4.1: dependencies: ansi-colors: 4.1.3 @@ -8061,34 +7365,6 @@ snapshots: '@esbuild/win32-ia32': 0.24.0 '@esbuild/win32-x64': 0.24.0 - esbuild@0.25.1: - optionalDependencies: - '@esbuild/aix-ppc64': 0.25.1 - '@esbuild/android-arm': 0.25.1 - '@esbuild/android-arm64': 0.25.1 - '@esbuild/android-x64': 0.25.1 - '@esbuild/darwin-arm64': 0.25.1 - '@esbuild/darwin-x64': 0.25.1 - '@esbuild/freebsd-arm64': 0.25.1 - '@esbuild/freebsd-x64': 0.25.1 - '@esbuild/linux-arm': 0.25.1 - '@esbuild/linux-arm64': 0.25.1 - '@esbuild/linux-ia32': 0.25.1 - '@esbuild/linux-loong64': 0.25.1 - '@esbuild/linux-mips64el': 0.25.1 - '@esbuild/linux-ppc64': 0.25.1 - '@esbuild/linux-riscv64': 0.25.1 - '@esbuild/linux-s390x': 0.25.1 - '@esbuild/linux-x64': 0.25.1 - '@esbuild/netbsd-arm64': 0.25.1 - '@esbuild/netbsd-x64': 0.25.1 - '@esbuild/openbsd-arm64': 0.25.1 - '@esbuild/openbsd-x64': 0.25.1 - '@esbuild/sunos-x64': 0.25.1 - '@esbuild/win32-arm64': 0.25.1 - '@esbuild/win32-ia32': 0.25.1 - '@esbuild/win32-x64': 0.25.1 - escalade@3.2.0: {} escape-string-regexp@1.0.5: {} @@ -8745,7 +8021,8 @@ snapshots: jiti@1.21.0: {} - jiti@2.4.2: {} + jiti@2.4.2: + optional: true joi@17.13.3: dependencies: @@ -8865,6 +8142,7 @@ snapshots: lightningcss-linux-x64-musl: 1.29.2 lightningcss-win32-arm64-msvc: 1.29.2 lightningcss-win32-x64-msvc: 1.29.2 + optional: true lilconfig@2.1.0: {} @@ -9660,6 +8938,8 @@ snapshots: pathe@1.1.2: {} + pathe@2.0.3: {} + pathval@1.1.1: {} pathval@2.0.0: {} @@ -9794,6 +9074,11 @@ snapshots: prettier: 3.5.3 svelte: 5.23.1 + prettier-plugin-svelte@3.3.3(prettier@3.5.3)(svelte@5.23.2): + dependencies: + prettier: 3.5.3 + svelte: 5.23.2 + prettier-plugin-tailwindcss@0.6.11(prettier-plugin-svelte@3.3.3(prettier@3.5.3)(svelte@5.23.1))(prettier@3.5.3): dependencies: prettier: 3.5.3 @@ -10051,31 +9336,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.24.0 fsevents: 2.3.3 - rollup@4.36.0: - dependencies: - '@types/estree': 1.0.6 - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.36.0 - '@rollup/rollup-android-arm64': 4.36.0 - '@rollup/rollup-darwin-arm64': 4.36.0 - '@rollup/rollup-darwin-x64': 4.36.0 - '@rollup/rollup-freebsd-arm64': 4.36.0 - '@rollup/rollup-freebsd-x64': 4.36.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.36.0 - '@rollup/rollup-linux-arm-musleabihf': 4.36.0 - '@rollup/rollup-linux-arm64-gnu': 4.36.0 - '@rollup/rollup-linux-arm64-musl': 4.36.0 - '@rollup/rollup-linux-loongarch64-gnu': 4.36.0 - '@rollup/rollup-linux-powerpc64le-gnu': 4.36.0 - '@rollup/rollup-linux-riscv64-gnu': 4.36.0 - '@rollup/rollup-linux-s390x-gnu': 4.36.0 - '@rollup/rollup-linux-x64-gnu': 4.36.0 - '@rollup/rollup-linux-x64-musl': 4.36.0 - '@rollup/rollup-win32-arm64-msvc': 4.36.0 - '@rollup/rollup-win32-ia32-msvc': 4.36.0 - '@rollup/rollup-win32-x64-msvc': 4.36.0 - fsevents: 2.3.3 - run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 @@ -10085,11 +9345,6 @@ snapshots: esm-env: 1.2.1 svelte: 5.16.1 - runed@0.23.3(svelte@5.23.1): - dependencies: - esm-env: 1.2.1 - svelte: 5.23.1 - rw@1.3.3: {} rxjs@7.8.1: @@ -10317,6 +9572,13 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} + sv-strip@0.0.7: + dependencies: + estree-walker: 3.0.3 + magic-string: 0.30.17 + pathe: 2.0.3 + svelte: 5.23.2 + svelte-check@4.1.1(picomatch@4.0.2)(svelte@5.16.1)(typescript@5.5.3): dependencies: '@jridgewell/trace-mapping': 0.3.25 @@ -10329,18 +9591,6 @@ snapshots: transitivePeerDependencies: - picomatch - svelte-check@4.1.1(picomatch@4.0.2)(svelte@5.23.1)(typescript@5.8.2): - dependencies: - '@jridgewell/trace-mapping': 0.3.25 - chokidar: 4.0.1 - fdir: 6.3.0(picomatch@4.0.2) - picocolors: 1.1.1 - sade: 1.8.1 - svelte: 5.23.1 - typescript: 5.8.2 - transitivePeerDependencies: - - picomatch - svelte-eslint-parser@1.1.0(svelte@5.23.1): dependencies: eslint-scope: 8.3.0 @@ -10377,13 +9627,6 @@ snapshots: style-to-object: 1.0.8 svelte: 5.16.1 - svelte-toolbelt@0.7.1(svelte@5.23.1): - dependencies: - clsx: 2.1.1 - runed: 0.23.3(svelte@5.23.1) - style-to-object: 1.0.8 - svelte: 5.23.1 - svelte@5.16.1: dependencies: '@ampproject/remapping': 2.3.0 @@ -10418,6 +9661,23 @@ snapshots: magic-string: 0.30.12 zimmerframe: 1.1.2 + svelte@5.23.2: + dependencies: + '@ampproject/remapping': 2.3.0 + '@jridgewell/sourcemap-codec': 1.5.0 + '@sveltejs/acorn-typescript': 1.0.5(acorn@8.14.1) + '@types/estree': 1.0.6 + acorn: 8.14.1 + aria-query: 5.3.2 + axobject-query: 4.1.0 + clsx: 2.1.1 + esm-env: 1.2.2 + esrap: 1.4.5 + is-reference: 3.0.3 + locate-character: 3.0.0 + magic-string: 0.30.17 + zimmerframe: 1.1.2 + sveltekit-superforms@2.19.1(@sveltejs/kit@2.15.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)))(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)))(@types/json-schema@7.0.15)(svelte@5.16.1): dependencies: '@sveltejs/kit': 2.15.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)))(svelte@5.16.1)(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)) @@ -10453,11 +9713,6 @@ snapshots: tailwind-merge: 2.6.0 tailwindcss: 3.4.14 - tailwind-variants@0.2.1(tailwindcss@4.0.14): - dependencies: - tailwind-merge: 2.6.0 - tailwindcss: 4.0.14 - tailwindcss-animate@1.0.7(tailwindcss@3.4.14): dependencies: tailwindcss: 3.4.14 @@ -10489,10 +9744,6 @@ snapshots: transitivePeerDependencies: - ts-node - tailwindcss@4.0.14: {} - - tapable@2.2.1: {} - tar-fs@3.0.6: dependencies: pump: 3.0.2 @@ -10611,6 +9862,10 @@ snapshots: dependencies: typescript: 5.6.3 + ts-blank-space@0.6.1: + dependencies: + typescript: 5.8.2 + ts-deepmerge@7.0.1: {} ts-interface-checker@0.1.13: {} @@ -10652,8 +9907,6 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - tw-animate-css@1.2.3: {} - type-check@0.4.0: dependencies: prelude-ls: 1.2.1 @@ -10884,27 +10137,10 @@ snapshots: lightningcss: 1.29.2 terser: 5.36.0 - vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2): - dependencies: - esbuild: 0.25.1 - postcss: 8.5.3 - rollup: 4.36.0 - optionalDependencies: - '@types/node': 20.16.14 - fsevents: 2.3.3 - jiti: 2.4.2 - lightningcss: 1.29.2 - terser: 5.36.0 - tsx: 4.16.2 - vitefu@1.0.3(vite@5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0)): optionalDependencies: vite: 5.4.9(@types/node@20.16.14)(lightningcss@1.29.2)(terser@5.36.0) - vitefu@1.0.6(vite@6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2)): - optionalDependencies: - vite: 6.2.2(@types/node@20.16.14)(jiti@2.4.2)(lightningcss@1.29.2)(terser@5.36.0)(tsx@4.16.2) - vitest@0.34.6(lightningcss@1.29.2)(playwright@1.48.1)(terser@5.36.0): dependencies: '@types/chai': 4.3.12 From c3155eb54e828592cf797e58f281794fd02397d0 Mon Sep 17 00:00:00 2001 From: Aidan Bleser Date: Wed, 19 Mar 2025 12:37:34 -0500 Subject: [PATCH 3/4] format and lint --- packages/cli/src/commands/add.ts | 6 ++-- packages/cli/src/commands/update.ts | 14 +++++---- .../cli/test/utils/registry/index.spec.ts | 2 +- sites/docs/scripts/build-registry.ts | 30 ------------------- 4 files changed, 12 insertions(+), 40 deletions(-) diff --git a/packages/cli/src/commands/add.ts b/packages/cli/src/commands/add.ts index 17be830f99..3cf7666424 100644 --- a/packages/cli/src/commands/add.ts +++ b/packages/cli/src/commands/add.ts @@ -275,9 +275,9 @@ async function runAdd(cwd: string, config: cliConfig.Config, options: AddOptions await fs.mkdir(dir, { recursive: true }); } - if (!config.typescript && filePath.endsWith('.ts')) { - filePath = filePath.replaceAll('.ts', '.js'); - file.target = file.target.replaceAll('.ts', '.js'); + if (!config.typescript && filePath.endsWith(".ts")) { + filePath = filePath.replaceAll(".ts", ".js"); + file.target = file.target.replaceAll(".ts", ".js"); } await fs.writeFile(filePath, content); diff --git a/packages/cli/src/commands/update.ts b/packages/cli/src/commands/update.ts index 7571c9eb53..d0a822b52b 100644 --- a/packages/cli/src/commands/update.ts +++ b/packages/cli/src/commands/update.ts @@ -13,7 +13,7 @@ import { cancel, intro, prettifyList } from "../utils/prompt-helpers.js"; import * as p from "../utils/prompts.js"; import * as registry from "../utils/registry/index.js"; import { UTILS, UTILS_JS } from "../utils/templates.js"; -import { transformImports } from "../utils/transformers.js"; +import { transformContent } from "../utils/transformers.js"; import { resolveCommand } from "package-manager-detector/commands"; import { checkPreconditions } from "../utils/preconditions.js"; @@ -183,9 +183,7 @@ async function runUpdate(cwd: string, config: cliConfig.Config, options: UpdateO names: selectedComponents.map((com) => com.name), config, }); - const payload = (await registry.fetchTree(tree)).sort((a, b) => - a.name.localeCompare(b.name) - ); + const payload = (await registry.fetchTree(tree)).sort((a, b) => a.name.localeCompare(b.name)); const componentsToRemove: Record = {}; const dependencies = new Set(); @@ -212,10 +210,14 @@ async function runUpdate(cwd: string, config: cliConfig.Config, options: UpdateO } for (const file of item.files) { - const filePath = path.resolve(targetDir, item.name, file.name); + let filePath = path.resolve(targetDir, item.name, file.name); + + if (!config.typescript && filePath.endsWith(".ts")) { + filePath = filePath.replaceAll(".ts", ".js"); + } // Run transformers. - const content = transformImports(file.content, config); + const content = await transformContent(file.content, filePath, config); await fs.writeFile(filePath, content); } diff --git a/packages/cli/test/utils/registry/index.spec.ts b/packages/cli/test/utils/registry/index.spec.ts index 5dc86d48bf..19edcadeb7 100644 --- a/packages/cli/test/utils/registry/index.spec.ts +++ b/packages/cli/test/utils/registry/index.spec.ts @@ -91,4 +91,4 @@ describe("getItemTargetPath", () => { }) ).toEqual(path.join("src", "lib", "components", "ui")); }); -}); \ No newline at end of file +}); diff --git a/sites/docs/scripts/build-registry.ts b/sites/docs/scripts/build-registry.ts index d7d54e3335..8c51214a72 100644 --- a/sites/docs/scripts/build-registry.ts +++ b/sites/docs/scripts/build-registry.ts @@ -9,21 +9,11 @@ import { themes } from "../src/lib/registry/themes"; import { buildRegistry } from "./registry"; import { BASE_STYLES, BASE_STYLES_WITH_VARIABLES, THEME_STYLES_WITH_VARIABLES } from "./templates"; import { getChunks } from "./transform-chunks"; -import { transformContent } from "./transformers"; -import prettier from "prettier"; -import prettierPluginSvelte from "prettier-plugin-svelte"; const REGISTRY_PATH = path.resolve("static", "registry"); const THEMES_CSS_PATH = path.resolve("static"); const REGISTRY_IGNORE = ["super-form"]; -const prettierConfig: prettier.Config = { - useTabs: true, - singleQuote: false, - trailingComma: "es5", - printWidth: 100, -}; - function writeFileWithDirs( filePath: string, data: string, @@ -164,26 +154,6 @@ export const Index = { // discard `path` prop const files = item.files.map((file) => ({ ...file, path: undefined })); - const jsFiles = await Promise.all( - files.map(async (file) => { - let content = await transformContent(file.content, file.name); - const fileName = file.name.replace(".ts", ".js"); - // format - content = await prettier.format(content, { - ...prettierConfig, - filepath: fileName, - plugins: [prettierPluginSvelte], - overrides: [{ files: "*.svelte", options: { parser: "svelte" } }], - }); - return { - name: fileName, - content, - target: file.target.replace(".ts", ".js"), - type: file.type, - }; - }) - ); - const payload = { ...item, files, From e2512f21b9f73b17949dd7d8468d1b2798b646f7 Mon Sep 17 00:00:00 2001 From: Aidan Bleser Date: Wed, 19 Mar 2025 12:43:49 -0500 Subject: [PATCH 4/4] fix update --- packages/cli/src/commands/add.ts | 4 ++-- packages/cli/src/commands/update.ts | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/commands/add.ts b/packages/cli/src/commands/add.ts index 3cf7666424..67420b32d5 100644 --- a/packages/cli/src/commands/add.ts +++ b/packages/cli/src/commands/add.ts @@ -276,8 +276,8 @@ async function runAdd(cwd: string, config: cliConfig.Config, options: AddOptions } if (!config.typescript && filePath.endsWith(".ts")) { - filePath = filePath.replaceAll(".ts", ".js"); - file.target = file.target.replaceAll(".ts", ".js"); + filePath = filePath.replace(".ts", ".js"); + file.target = file.target.replace(".ts", ".js"); } await fs.writeFile(filePath, content); diff --git a/packages/cli/src/commands/update.ts b/packages/cli/src/commands/update.ts index d0a822b52b..704c6c08de 100644 --- a/packages/cli/src/commands/update.ts +++ b/packages/cli/src/commands/update.ts @@ -213,7 +213,7 @@ async function runUpdate(cwd: string, config: cliConfig.Config, options: UpdateO let filePath = path.resolve(targetDir, item.name, file.name); if (!config.typescript && filePath.endsWith(".ts")) { - filePath = filePath.replaceAll(".ts", ".js"); + filePath = filePath.replace(".ts", ".js"); } // Run transformers. @@ -223,7 +223,13 @@ async function runUpdate(cwd: string, config: cliConfig.Config, options: UpdateO } const installedFiles = await fs.readdir(componentDir); - const remoteFiles = item.files.map((file) => file.name); + const remoteFiles = item.files.map((file) => { + if (!config.typescript && file.name.endsWith(".ts")) { + return file.name.replace(".ts", ".js"); + } + + return file.name; + }); const filesToDelete = installedFiles .filter((file) => !remoteFiles.includes(file)) .map((file) => path.resolve(targetDir, item.name, file));